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 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

