RE: [PHP] Bizarre SQl, if issue....

From: Date: Tue, 29 Jul 2003 18:24:12 +0000
Subject: RE: [PHP] Bizarre SQl, if issue....
Groups: php.general 
Request: Send a blank email to php-general+get-157371@lists.php.net to get a copy of this message
[snip] I did the var_dump and got: bool(false) While $vthere (from my previous post) returns 0 (zero) still. :\ But proceeds as if 0 were a false statement when asked if $vthere equals zero. :\ -Mike [/snip] Is the query executing properly? Try this ... $sql = "SELECT ID from tblItems WHERE number = '" . $place . "' "); if(!($person = mysql_query($sql, $connect_variable))){ print(mysql_error() . "\n"); exit(); } It is a verbose test

« previous php.general (#157371) next »