FishSword Posted October 8, 2010 Share Posted October 8, 2010 Hiya! How do I create a pagination function that can be used multiple times, with any MySQL query? Many Thanks, Link to comment https://forums.phpfreaks.com/topic/215449-pagination-function/ Share on other sites More sharing options...
Rifts Posted October 9, 2010 Share Posted October 9, 2010 http://tinyurl.com/367zxfw that might help Link to comment https://forums.phpfreaks.com/topic/215449-pagination-function/#findComment-1120441 Share on other sites More sharing options...
Oziam Posted October 9, 2010 Share Posted October 9, 2010 There is also a cool class at PHP Classes called CSS Pagination, it can be easily included with multiple queries and styled to suit any site! Link to comment https://forums.phpfreaks.com/topic/215449-pagination-function/#findComment-1120443 Share on other sites More sharing options...
FishSword Posted October 16, 2010 Author Share Posted October 16, 2010 Is it possible to make/use a function to paginate results, rather than a class? If so, how? Link to comment https://forums.phpfreaks.com/topic/215449-pagination-function/#findComment-1122718 Share on other sites More sharing options...
fortnox007 Posted October 16, 2010 Share Posted October 16, 2010 Quote Is it possible to make/use a function to paginate results, rather than a class? If so, how? I am still to php, but maybe assign a select query with a limited range to the buttons depending on the amount of rows. I bet you need to use a query like: SELECT * FROM content LIMIT 0,9 (button 1) SELECT * FROM content LIMIT 10,19 (button 2) et cetera. And before that use count the rows of the table and divide them. But i should have a look into this myself too. But this makes sense to me Link to comment https://forums.phpfreaks.com/topic/215449-pagination-function/#findComment-1122743 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.