Re: Uninitialized Variables

From: Date: Thu, 15 Mar 2001 04:05:17 +0000
Subject: Re: Uninitialized Variables
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6041@lists.php.net to get a copy of this message
What exactly is the error message? I know this sounds stupid, but are you sure it isn't just a warning? By default, PHP will output all warnings and errors to standard output (e.g. the browser). Olivier
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


« previous php.windows (#6041) next »