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

From: Date: Tue, 29 Jul 2003 17:52:08 +0000
Subject: RE: [PHP] Bizarre SQl, if issue....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157352@lists.php.net to get a copy of this message
I know. I first tested for !$person but got the TRUE result when I should have received FALSE (empty set). Why would that be? I added '0' and such just to see if I wasn't thinking straight..... :\ -Mike > -----Original Message----- > From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com] > Sent: Tuesday, July 29, 2003 1:44 PM > To: Jay Blanchard; Mike At Spy; php-general@lists.php.net > Subject: RE: [PHP] Bizarre SQl, if issue.... > > > [snip] > > ...lots of stuff... > > [/snip] > > What I forgot to say is that basically you were testing for query > execution, not the number of rows returned from the database. If you > want to test the number of rows or some other result from the query you > have to go further. > > HTH! > >

« previous php.general (#157352) next »