Jump to content

Php Question with Sam Broadcaster


mfoland

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...