Re: Getting Record Counts
| From: | Jason Wong | Date: | Tue, 24 Feb 2004 02:52:15 +0000 |
| Subject: | Re: Getting Record Counts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178628@lists.php.net to get a copy of this message | ||
On Tuesday 24 February 2004 10:48, Mark Roberts wrote:
> 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?
RTFM and *understand* how the examples work.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The sensei will only use you during demonstrations for joint-locking and
sweeping techniques
-- Murphy's Laws of Martial Arts n5
*/