Dave Tarmac Posted March 13, 2007 Share Posted March 13, 2007 Hi all, I found this script on Codewalkers, but I am having trouble manipulating it to how I want. The code can be found here: http://pastebin.com/898213 As it stands at the moment, I can get it displaying 10 pages with no trouble, but when I go to page 11, it does not display on the page list, it stays 1-10. If anyone can help me fix this then I would be most grateful. Quote Link to comment https://forums.phpfreaks.com/topic/42505-classpagerphp-issues/ Share on other sites More sharing options...
Dave Tarmac Posted March 14, 2007 Author Share Posted March 14, 2007 Hi again all, Let me go in to a bit more detail now - I was rushed yesterday. The paging class above works but displays every page in this format: << < 1 2 3 4 5... > >> Sadly, on one of the pages that this is used, it displays all 30 page numbers which is far too long. I have managed to limit it so that it only displays as: << < 1 3 4 5 6 7 8 9 10 > >> The problem I have is that when I go to page 11, the page list does not change. It stays as 1-10. I hope this is a better explanation. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/42505-classpagerphp-issues/#findComment-206882 Share on other sites More sharing options...
Dave Tarmac Posted March 14, 2007 Author Share Posted March 14, 2007 The full original code including how to implement can be found here: http://codewalkers.com/getcode.php?id=92 Quote Link to comment https://forums.phpfreaks.com/topic/42505-classpagerphp-issues/#findComment-206952 Share on other sites More sharing options...
coplan Posted March 14, 2007 Share Posted March 14, 2007 Rather than reinvent the wheel, have you looked at any of the PEAR modules? Specifically, the Pager module (http://pear.php.net/package/Pager) looks like it might do everything you need and then some. I'm evaluating it for my own purposes as well. Quote Link to comment https://forums.phpfreaks.com/topic/42505-classpagerphp-issues/#findComment-207543 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.