Re: mysqli_query() returns NULL?
| From: | James Colannino | Date: | Sat, 18 Jun 2011 23:55:57 +0000 |
| Subject: | Re: mysqli_query() returns NULL? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313606@lists.php.net to get a copy of this message | ||
On 06/18/11 13:27, Ashley Sheridan wrote:
> You'll only get an error if there was an error with the query. A query that has no result
> is still a valid query, so won't return an error. It's quite common to check the value of
> mysql_num_rows() before trying to use the results of the query.
But in that case it would return boolean true rather than NULL, right?
James