Re: About PHP/MYSQL Pagination

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 5 | next last >> )
>
> I know how to display them from 1 to whatever by using for loop, but
> the
> problem comes in when I click "next" from page "5", it does not get
> re-listed starting from page "6".

$start_offset = (floor($offset, 5) + 1) * 5;

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux