RE: [PHP] php errors while displaying database fields
| From: | John W. Holmes | Date: | Thu, 13 Mar 2003 01:32:25 +0000 |
| Subject: | RE: [PHP] php errors while displaying database fields | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139426@lists.php.net to get a copy of this message | ||
> I have searched the archives, and have found nothing on these
errors
> I am getting. Here is the apache error logs capture:
>
>
>
> PHP Notice: Undefined index: REMOTE_ADDR in
> /home/www/customflagcompany/phpshop/modules/admin/lib/ps_session.inc
on
> line 39
What don't you understand? It's a warning telling you that in an array
you're using, you're trying to use an index that's undefined.
> PHP Notice: Undefined variable: page in
> /home/www/customflagcompany/phpshop/bin/index.php3 on line 53
Same thing here. You're using a variable, $page, that is not defined.
These are warnings. If you want to fix them, then give your variables a
value before you use them. Otherwise adjust the error reporting level in
php.ini or with the error_reporting() function.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/