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

From: Date: Tue, 29 Jul 2003 18:55:16 +0000
Subject: RE: [PHP] Bizarre SQl, if issue....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157386@lists.php.net to get a copy of this message
> -----Original Message----- > From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com] > Sent: Tuesday, July 29, 2003 2:48 PM > To: Mike At Spy; php-general@lists.php.net > Subject: RE: [PHP] Bizarre SQl, if issue.... > > > [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 } Same result (actually, that was the first statement I tried). :\ -Mike

« previous php.general (#157386) next »