note 86055 deleted from mysqli-stmt.num-rows by thiago
| From: | thiago@php.net | Date: | Wed, 01 Oct 2008 14:50:29 +0000 |
| Subject: | note 86055 deleted from mysqli-stmt.num-rows by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144931@lists.php.net to get a copy of this message | ||
Note Submitter: sales at aviongoo dot com
Reason: bad code
----
I just use:
$sql = "SELECT . . . ";
$result = mysql_query($sql);
$num_rows = mysql_num_rows($result);
That always seems to work for me no matter how large or small the result.