RE: [PHP] Bizarre SQl, if issue....
| From: | Jay Blanchard | Date: | Tue, 29 Jul 2003 17:55:46 +0000 |
| Subject: | RE: [PHP] Bizarre SQl, if issue.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157354@lists.php.net to get a copy of this message | ||
[snip]
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
[/snip]
If the query executes it will return TRUE for $person, so
if(!$person) would read IF THE QUERY IS NOT TRUE
if($person) would read IF THE QUERY IS TRUE