It's 1 based. It returns the number of rows. Not the index of the last
row. (Which would be 0 based.)

On Fri, 2002-06-07 at 19:23, William_dw -- Sqlcoders wrote:
> Hiya!,
> Does anyone know whether mysql_num_rows is zero or one based?
> 
> that is, if I have 5 records will mysql_num_rows() return 4 or 5?
> 
> Thanks in advance!,
> Dw.
> 
> (I did check the php.net and MySQL manual for mysql_num_rows,
> php.net dosent say and MySQL only gives a one line description, which is how
> to call mysql_num_rows).
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to