note 38418 added to function.mysql-result

From: Date: Fri, 19 Dec 2003 23:45:13 +0000
Subject: note 38418 added to function.mysql-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-62255@lists.php.net to get a copy of this message
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); ---- Manual Page -- http://www.php.net/manual/en/function.mysql-result.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38418 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38418&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38418&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62255) next »