Help - Search - Members - Calendar
Full Version: Pagination - Can't Get My Head Around It!
Invision Power Services > Community Forums > Community Web Design and Coding
The Old Man
Hi,
I just can't get my head around how to do pagination in a php page showing results of say a table listing or image thumbnails. I get the theory, divide the number of results by the results per page to give you the number of pages, but what then?

Does anyone have a simple guide that they can recommend to a numpty like me?
Jaggi
if you look here: http://www.ipsbeyond.com/forums/index.php?...p;showarticle=1 and find "$this->ipsclass->build_pagelinks( array )" theres a run down on how IPB does pagination.
The Old Man
Hhhm, I don't get it but there again I've not used classes and functions yet in PHP, just calls to a database and queries to display data. I want to undderstand how it works so I can use it on my own websites, nothing to do with IPB.

Thanks for that though. Much appreciated.
Jaggi
save me posting a entire guide would be best to check out this tutorial: http://www.phpfreaks.com/tutorial_cat/25/P...-Pagination.php if you do a google you'll find hundreds more.
The Old Man
QUOTE
Turning your MySQL results into Pages using Page Numbering could not get any easier than this tutorial.


Now thats what I'm talking about! Thanks Jaggi.
Tried a lot of these on Google of course.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.