note 4854 deleted from mysql_result by danbeck
| From: | danbeck@php.net | Date: | Thu, 07 Sep 2000 18:22:11 +0000 |
| Subject: | note 4854 deleted from mysql_result by danbeck | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4432@lists.php.net to get a copy of this message | ||
you can either user mysql_num_rows function or if you really need to use mysql_result to get the
result of your "SELECT count(*) from table", do the following :
$dbresult = mysql_query("SELECT count(*) from table",$handler);
$Result = mysql_result($dbresult,0);
The result of your query should be in $Result