Re: mysql_num_rows()

From: Date: Fri, 07 Jun 2002 21:41:11 +0000
Subject: Re: mysql_num_rows()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101197@lists.php.net to get a copy of this message
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 > >

« previous php.general (#101197) next »