paging a larg number of page like 2000 page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rkumar
Forum Newbie
Posts: 4
Joined: Fri Jun 22, 2007 12:08 pm

paging a larg number of page like 2000 page

Post by rkumar »

hi friends

My problem is a large number of page how to handle paging to show minimum number of paging index

1to 5 and show ......and next.


please help me .
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

What have you done so far?
User avatar
jimthunderbird
Forum Contributor
Posts: 147
Joined: Tue Jul 04, 2006 3:59 am
Location: San Francisco, CA

Post by jimthunderbird »

I think you can use a request var for example "page", then keep track of which page you are at.

Suppose you are at page k, then you can show page numbers from k to k+4 or from k-2 to k+2.

Hope this hint helps.

With my best,
Jim
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

What do the people using this pager need to do. You could obviously show more links to pages: to the first and last pages, to every 100th page, there are lots of possiblities. You could also allow people to sort the list by columns to get to what they want. Or you could allow people t
(#10850)
Post Reply