Re: [PHP] Getting Record Counts

2004-02-23 Thread Jason Wong
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, w

[PHP] Getting Record Counts

2004-02-23 Thread Mark Roberts
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 'Resourc