[PHP] Looking for a navigation recommendation
Hi all: 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? Thanks so much for any help you can send my way. Jon
Re: [PHP] Looking for a navigation recommendation
At 7:55 AM -0700 11/17/07, Jon Westcot wrote: Hi all: 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? Thanks so much for any help you can send my way. Jon Jon: Do you mean something like this: http://webbytedd.com/bbb/proof Please note the page thing at the bottom. If so, I'll work up a demo for you. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Looking for a navigation recommendation
Hi Tedd: Hi all: 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? Thanks so much for any help you can send my way. Jon Jon: Do you mean something like this: http://webbytedd.com/bbb/proof Please note the page thing at the bottom. If so, I'll work up a demo for you. Cheers, tedd YES! Exactly! Something like that would be very nice to have. MUCH appreciated! Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Looking for a navigation recommendation
At 8:15 AM -0700 11/17/07, Jon Westcot wrote: YES! Exactly! Something like that would be very nice to have. MUCH appreciated! Jon Jon: Here it is: http://webbytedd.com/bbb/paging I'm assuming that you know how to establish communication with your database; how to set up your database; and how to use css and the images as shown there. If you get in trouble, I'm available for hire. :-) tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Looking for a navigation recommendation
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
Re: [PHP] Looking for a navigation recommendation (SOLVED)
Hi Tedd: YES! Exactly! Something like that would be very nice to have. MUCH appreciated! Jon Jon: Here it is: http://webbytedd.com/bbb/paging I'm assuming that you know how to establish communication with your database; how to set up your database; and how to use css and the images as shown there. If you get in trouble, I'm available for hire. :-) tedd Thanks for the code sample. It pointed me in exactly the right direction to solve what I was trying to accomplish. Appreciatively, Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php