View Full Version : Php Question with Sam Broadcaster

07-25-2011, 06:57 AM
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!

07-26-2011, 02:04 PM
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).

07-27-2011, 04:44 PM
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!

07-27-2011, 09:37 PM
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