mfoland Posted July 25, 2011 Share Posted July 25, 2011 Hello, I was wondering if anyone knows how to do a pagination like this: http://www.945litefm.com/iplaylist/playlist.html?net=1 with SAM DB's php for count, etc so it knows the total songs, and limiting by 20. I am pretty good with PHP, but never have figured out how to tackle something like that. It's a very nice pagination. When you click the numbers it bolds the one you clicked.. Thanks! Link to comment Share on other sites More sharing options...
BWorld Posted July 26, 2011 Share Posted July 26, 2011 There is not a real simple answer. It is a mysql/php code that has a row limiter on it. The limit is read via the address bar (php get function). ██ Stream101 | Affordable Media Solutions ██ Shared cPanel? Web Hosting | WordPress Hosting | Premium Stream Hosting ██ TOLL-FREE: (616) 277-7280 | 30 Day NO QUESTIONS Money-Back Guarantee ██ 100% Cogent Free Network | CloudLinux OS | Tier 1 Bandwidth | Grand Rapids, MI Link to comment Share on other sites More sharing options...
mfoland Posted July 27, 2011 Author Share Posted July 27, 2011 I understand how the php works with it, but I am not sure what coding to use for the pagination like they have.. Thats the part I don't understand haha.. Any help would be appreciated. Thanks! Link to comment Share on other sites More sharing options...
BWorld Posted July 27, 2011 Share Posted July 27, 2011 That is what I explained above. They limit the mysql results to a specified number (20). A user clicks the link and that starts the command to pull to the next records. I know you state that you know how PHP works, but Im not sure if you understand how mysql with php works. It is much easier to write it and then show you which i dont have time for right now. This article explains how it "basically" works: http://php.about.com/od/phpwithmysql/ss/php_pagination.htm ██ Stream101 | Affordable Media Solutions ██ Shared cPanel? Web Hosting | WordPress Hosting | Premium Stream Hosting ██ TOLL-FREE: (616) 277-7280 | 30 Day NO QUESTIONS Money-Back Guarantee ██ 100% Cogent Free Network | CloudLinux OS | Tier 1 Bandwidth | Grand Rapids, MI Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.