RE: [PHP] Display Records in Multiple Pages
| From: | Martin Towell | Date: | Thu, 27 Jun 2002 06:47:30 +0000 |
| Subject: | RE: [PHP] Display Records in Multiple Pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104104@lists.php.net to get a copy of this message | ||
pass around a "page" number or a "start record" number. Use that to
determine where to start (and therefore where to end)
eg: page = 1 .'. start record = (1-1)*25+1 => 1
eg: page = 3 .'. start record = (3-1)*25+1 => 51
HTH
Martin
-----Original Message-----
From: Aqua [mailto:aqua@sas.co.id]
Sent: Thursday, June 27, 2002 4:54 PM
To: php-general@lists.php.net
Subject: [PHP] Display Records in Multiple Pages
I have 100 records in mySQL database and I need to display them in my web
page using php and html. How to display them in multiple pages? Each page
must contain 25 records. Does anyone know how to do it other than create 4
pages and manually list the records there? or maybe point me some reference
please. Your help will be much appreciated. Thanks!
Aqua