Re: how to determine if a mysql query returns an empty set?
| From: | Adam Williams | Date: | Thu, 23 Apr 2009 18:26:39 +0000 |
| Subject: | Re: how to determine if a mysql query returns an empty set? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291894@lists.php.net to get a copy of this message | ||
Andrew Ballard wrote:
It won't be any of those because the query is successful even if it returns no records. You could use http://us2.php.net/manual/en/mysqli-stmt.num-rows.php to determine how many rows were returned. Andrew Oh ok, thanks that makes sense. Thanks for the link also