mysql_num_rows speed

From: Date: Fri, 09 Jun 2000 20:55:58 +0000
Subject: mysql_num_rows speed
Groups: php.general 
Request: Send a blank email to php-general+get-1442@lists.php.net to get a copy of this message
I'm counting some rows in mysql in a loop, so I want things to be as fast as possible. Anyone know which is faster? $query = mysql_query("select count(*) from table where blah='blah'"); $thing = mysql_fetch_row($query); OR $query = mysql_query("select column from table where blah='blah'"); $thing = mysql_num_rows($query); I'm thinking the first is, but it's nice to have a second opinion :) David - atthat.com

« previous php.general (#1442) next »