Display Record Count in Output
am 13.11.2005 19:22:07 von drossen1Hello:
How would I display the number of records returned for a MySql query in the
output? Thanks
David
Hello:
How would I display the number of records returned for a MySql query in the
output? Thanks
David
C. David Rossen wrote:
> Hello:
>
> How would I display the number of records returned for a MySql query in the
> output? Thanks
>
have a look at mysql_num_rows()
Regards
Stefan
> David
>
>
$count = mysql_num_rows($result);
(where $result is the left side of the previous MySQL query)
Kitty
http://OpenSkyWebDesign.com
C. David Rossen wrote:
> Hello:
>
> How would I display the number of records returned for a MySql query in the
> output? Thanks
>
> David
>
>
Would count() also work?
"SELECT count(*) FROM table WHERE blablabla";