note 38418 deleted from function.mysql-result by nlopess

From: Date: Sat, 20 Dec 2003 09:12:13 +0000
Subject: note 38418 deleted from function.mysql-result by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62268@lists.php.net to get a copy of this message
Note Submitter: slunta@msn.com ---- mysql_result is a much quicker route for replacing mysql_num_rows. For example: $blah=mysql_num_rows(mysql_query("SELECT * FROM blah WHERE id=blah")); Instead of using that, you can use the following query to get the same result, but in a much faster script execution time: $blah=mysql_result(mysql_query("SELECT COUNT(*) FROM blah WHERE id=blah"),0);

« previous php.notes (#62268) next »