Re: [PHP] About PHP/MYSQL Pagination

2007-08-07 Thread Richard Lynch
On Thu, August 2, 2007 8:12 pm, Kelvin Park wrote: > I just couldn't find it anywhere, google or yahoo. I know how to make > first, previous, last, and next links for php/mysql pagination. How do > you list page numbers in the middle, between previous and next? (ex. > << > first previous | 1 2 3 4

Re: [PHP] About PHP/MYSQL Pagination

2007-08-04 Thread Richard Heyes
I just couldn't find it anywhere, google or yahoo. I know how to make first, previous, last, and next links for php/mysql pagination. How do you list page numbers in the middle, between previous and next? (ex. << first previous | 1 2 3 4 5 | next last >> ) I know how to display them from 1 to

RE: [PHP] About PHP/MYSQL Pagination

2007-08-04 Thread Sanjeev N
Hi, 1. first you know current page number 2. you know how many pages Next consider total how many page number you want to display Assume 5 I.e. << first previous | 1 2 3 4 5 | next last >> Now when you come to page 4 then starting page is around 4-1 or 4-2 (however you want) and start