Re: Looking for a navigation recommendation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux