note 13892 rejected and deleted from function.mysql-num-rows.php by zak
| From: | zak@php.net | Date: | Mon, 09 Jul 2001 01:54:57 +0000 |
| Subject: | note 13892 rejected and deleted from function.mysql-num-rows.php by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15109@lists.php.net to get a copy of this message | ||
I don't know if this is always the case, but I found mysql_num_rows to be extremely slow!
Instead, I use this:
$result = mysql_fetch_array(mysql_db_query($database, $query));
$NumRows = count($result);