SV: [PHP] Number of rows reurned?

From: Date: Sun, 20 Jan 2002 17:55:50 +0000
Subject: SV: [PHP] Number of rows reurned?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81280@lists.php.net to get a copy of this message
Thanks. I knew that - really. Meltdown upstairs :) - D > -----Ursprungligt meddelande----- > Från: Jason Wong [mailto:php-general@gremlins.com.hk] > Skickat: den 20 januari 2002 18:53 > Till: Daniel Alsén; PHP List > Ämne: Re: [PHP] Number of rows reurned? > > > On Monday 21 January 2002 01:45, Daniel Alsén wrote: > > Hi, > > > > how can i get the number of rows reuturned by this query? > > > > $sql = "select date from statistik where > shooter='$shooter_login' group by > > date"; > > > > I want to add a page function and limit the returned rows on each page - > > but i can´t get the total number of rows. > > Check out the relevant chapter in the manual for the db that > you're using. > Some dbs have a function returning the number of rows. > > If you're using MySQL then mysql_num_rows() is what you want. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > > /* > If a man has talent and cannot use it, he has failed. > -- Thomas Wolfe > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#81280) next »