extrovertive Posted October 13, 2006 Share Posted October 13, 2006 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 15How would I do this in a for loop? Quote Link to comment https://forums.phpfreaks.com/topic/23826-pagnition-with/ Share on other sites More sharing options...
php_coder_dvo Posted October 13, 2006 Share Posted October 13, 2006 [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.. Quote Link to comment https://forums.phpfreaks.com/topic/23826-pagnition-with/#findComment-108209 Share on other sites More sharing options...
extrovertive Posted October 13, 2006 Author Share Posted October 13, 2006 A better example? Quote Link to comment https://forums.phpfreaks.com/topic/23826-pagnition-with/#findComment-108214 Share on other sites More sharing options...
mjlogan Posted October 13, 2006 Share Posted October 13, 2006 http://www.phpfreaks.com/tutorials/73/0.phphttp://www.phpfreaks.com/tutorials/43/0.php Quote Link to comment https://forums.phpfreaks.com/topic/23826-pagnition-with/#findComment-108224 Share on other sites More sharing options...
extrovertive Posted October 13, 2006 Author Share Posted October 13, 2006 I already know pagination, just the 1 2 3 4...10 11 12Like if I were to click 4, then it would turn to3 4 5 6 ...10 11 12something like that. Quote Link to comment https://forums.phpfreaks.com/topic/23826-pagnition-with/#findComment-108640 Share on other sites More sharing options...
redarrow Posted October 14, 2006 Share Posted October 14, 2006 use -1 ok. Quote Link to comment https://forums.phpfreaks.com/topic/23826-pagnition-with/#findComment-108691 Share on other sites More sharing options...
irkevin Posted August 18, 2007 Share Posted August 18, 2007 use - 1?? but where? i've been reading the entire forum for this solution, bit no one gave an exact explanation :S Quote Link to comment https://forums.phpfreaks.com/topic/23826-pagnition-with/#findComment-327331 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.