Hi, i m now working on a page numbering function. i have go through quite a lot of the examples from google but none of them do what i need. Below is my case:
I have, for example an array holding 132 values, and i wan to show only 5 items in a page, so there is a total of 27 pages.The page number then will show something like below,
Page 1 2 3 4 5 > >> , when we click on ">" it will show
Page < 6 7 8 9 10 > >>, click on ">" again, it will show
Page << < 11 12 13 14 15 > >>, and so on. click on "<<" or ">>" will bring to the first and last page.
Any idea on how to make this thing happened? Thanks...
Page Numbering problem
Moderator: General Moderators
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Page Numbering problem
What did you search for using Google?
This is known as "pagination". Try searching using this term - there are lots of tutorials out there.
In brief, what you'd need to consider is number of results per page, LIMIT 0, 5 and url parameters.
This is known as "pagination". Try searching using this term - there are lots of tutorials out there.
In brief, what you'd need to consider is number of results per page, LIMIT 0, 5 and url parameters.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Page Numbering problem
(#10850)
Re: Page Numbering problem
Hello,
Are you using a database or just a hard coded array of a certain number of items?
Thanks
Are you using a database or just a hard coded array of a certain number of items?
Thanks