Display Record Count in Output

Display Record Count in Output

am 13.11.2005 19:22:07 von drossen1

Hello:

How would I display the number of records returned for a MySql query in the
output? Thanks

David

Re: Display Record Count in Output

am 13.11.2005 19:41:00 von Stefan Rybacki

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
>
>

Re: Display Record Count in Output

am 13.11.2005 20:06:23 von MsKitty

$count = mysql_num_rows($result);

(where $result is the left side of the previous MySQL query)

Kitty
http://OpenSkyWebDesign.com

Re: Display Record Count in Output

am 14.11.2005 02:33:10 von scott

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";