The Old Man
Jul 25 2006, 04:30 PM
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
Jul 26 2006, 03:16 AM
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
Jul 26 2006, 10:18 AM
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
Jul 27 2006, 01:01 AM
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
Jul 27 2006, 07:55 AM
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.