Page 1 of 1

Pagination numbering of list pages

Posted: Tue Mar 02, 2004 12:21 pm
by mccommunity
I am pulling a list of about 10,000 items. There are 25 items to display on the page at a time. I would like to ad page numbering at the top. I am able to add page numbering at the top fine but if there are 100 pages it displays page 1 - page 100 which takes up the whole screeen. I would like for whever it is over ten to display page 20 page 30 page 40 etc. then when you click on 40 it adjusts the page sets accordingly. I am not sure how to do this though. Can anyone help?

Posted: Tue Mar 02, 2004 1:28 pm
by andre_c
Are you pulling that list from a mysql database? if so, you can use the LIMIT keyword combined maybe with php sessions to keep track of stuff. I believe there's a tutorial on page pagination on http://www.phpfreaks.com/tutorials/73/0.php

Posted: Tue Mar 02, 2004 2:01 pm
by infolock
andre took the words right out of my mouth