Uninitialized Variables
| From: | Dwight Sparling | Date: | Thu, 15 Mar 2001 02:43:31 +0000 |
| Subject: | Uninitialized Variables | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6040@lists.php.net to get a copy of this message | ||
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