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

From: Date: Tue, 29 Jul 2003 18:48:28 +0000
Subject: RE: [PHP] Bizarre SQl, if issue....
Groups: php.general 
Request: Send a blank email to php-general+get-157382@lists.php.net to get a copy of this message
[snip] I did! Look at this again: $which_person = mysql_query("SELECT ID FROM tblItems WHERE number = $place"); $vthere = mysql_num_rows($which_person); if ($vthere == '0') { True } else { False } Yet it still returns as if this is FALSE (i.e. it executes the else {}. :\ [/snip] try .... if ($vthere == 0) { True } else { False }

« previous php.general (#157382) next »