Re: Looking for a navigation recommendation

From: Date: Sat, 17 Nov 2007 19:35:17 +0000
Subject: Re: Looking for a navigation recommendation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264754@lists.php.net to get a copy of this message
I'm working on a project wherein I need to be able to navigate to previous and next sections of data. I'm wondering what the best way to code for this would be. When I enter the page, I'd like it to use something in the MySQL SELECT such as "LIMIT 0,25", but the "0" portion needs to change with the appropriate selections of "Next" or "Prev". I thought that setting Next or Prev as an anchor back to the same page would let me pass along data, but it doesn't seem to be happening, at least, not in the $_POST variables. Any suggestions for me? Or maybe a recommendation for a similar page I could view and learn from?
The PEAR Pager class can do this for you. Together with the Pager_Sliding package it works very well. http://pear.php.net/package/Pager -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

« previous php.general (#264754) next »