Re: Uninitialized Variables
| From: | Florian Poizac | Date: | Thu, 15 Mar 2001 15:51:44 +0000 |
| Subject: | Re: Uninitialized Variables | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6073@lists.php.net to get a copy of this message | ||
in your php.ini you certainly have
error_reporting = E_ALL
this line active put a ; before and you can use this one instead
error_reporting = E_ALL & ~E_NOTICE
Cheers
Florian
----- Original Message -----
From: Dwight Sparling <dwight@ctinet.net>
To: <php-windows@lists.php.net>
Sent: Thursday, March 15, 2001 3:43 AM
Subject: [PHP-WIN] Uninitialized Variables
> Can PHP deal with variables that are not initialized? It is kicking out an
> error when it runs into something that is not defined yet.
>
> mysql_select_db("mydb",$db);
>
> if ($id) { <=========Not initialized and PHP
> kicks an error?
>
> // query the DB
>
>
> Thanks!
> Dwight
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>