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

From: Date: Tue, 29 Jul 2003 18:20:40 +0000
Subject: RE: [PHP] Bizarre SQl, if issue....
Groups: php.general 
Request: Send a blank email to php-general+get-157368@lists.php.net to get a copy of this message
[snip] $which_person = mysql_query("SELECT ID FROM tblItems WHERE number = $place"); $vthere = mysql_num_rows($which_person); if ($vthere == '0') { True } else { False } What should this return? True or False? [/snip] If there is one or more rows returned by the query False, if zero rows are returned then True.

« previous php.general (#157368) next »