Getting Record Counts
| From: | Mark Roberts | Date: | Tue, 24 Feb 2004 02:48:36 +0000 |
| Subject: | Getting Record Counts | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178627@lists.php.net to get a copy of this message | ||
I am trying to get a record count from a MySql database using the following:
$reccount = @mysql_query("select count(*) from mytable where user =
'testuser');
I try this from mysql and get the correct response ( 1 ).
However, when I put this in an php script, $reccount returns a value of
'Resource id #5'.
What am I doing wrong?
Thanks.
Mark Roberts, Roberts Computing Systems
Webmaster Services $29.50/mo
mailto:mark.roberts@robertscomputing.com