RE: [PHP] Bizarre SQl, if issue....
| From: | Jay Blanchard | Date: | Tue, 29 Jul 2003 18:40:33 +0000 |
| Subject: | RE: [PHP] Bizarre SQl, if issue.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157377@lists.php.net to get a copy of this message | ||
[snip]
> I still want to know what you need to do, test for query execution or
> value? It is pretty cut and dried after that.
Value. If there is nothing found in the table that matches, do one
thing.
If there is, do another. :)
[/snip]
Then you must test for something returned, not whether or not the query
executed. Use mysql_num_rows($person);