Re: Pagination

From: Date: Wed, 23 Mar 2005 20:27:49 +0000
Subject: Re: Pagination
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211405@lists.php.net to get a copy of this message
Marquez Design wrote:
Hello all, I am wanting to paginate records from a MySQL Database. I want there to be 5 records on a page, on multiple pages. Can someone point me in the right direction or show me a way to do this? I can get five records on a page with a LIMIT statement, however, I can not get it to show the first five, then put a "next" link to the next 5 and so on. (I would like there to be a "next" and "previous.")
Your next and previous buttons either need to pass where they left off in the db (either in the query string or by means of a form post), so that your script will know where to start from. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#211405) next »