Jump to content

Archived

This topic is now archived and is closed to further replies.

extrovertive

Pagnition with ...?

Recommended Posts

I have a pagintion page of 15+ total...now I dont to want display all the page numbers.

I want something like:

Pages: 1 2 3 4 5 ... 12 13 14 15

How would I do this in a for loop?

Share this post


Link to post
Share on other sites
[code]
for($i = 1; $i<=5; $i++){

//do something here;

}
[/code]

then create an algorithm that will compute of the 1 to 5 view is page 1, 6 to 10 is page 2 and so forth..

Share this post


Link to post
Share on other sites
http://www.phpfreaks.com/tutorials/73/0.php

http://www.phpfreaks.com/tutorials/43/0.php

Share this post


Link to post
Share on other sites
I already know pagination, just the 1 2 3 4...10 11 12

Like if I were to click 4, then it would turn to
3 4 5 6 ...10 11 12

something like that.

Share this post


Link to post
Share on other sites
use - 1?? but where? i've been reading the entire forum for this solution, bit no one gave an exact explanation :S

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.