spires Posted August 16, 2006 Share Posted August 16, 2006 HiDoes any one know how to creat a navigation bar like google.e.gPrevious 1 2 3 4 5 6 7 8 9 10 11 12 NextthenPrevious 13 14 15 16 17 18 19 20 21 NextETCAll i can do is:Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Nextone long continues row of numbers.any help or links would be great.thanks Link to comment https://forums.phpfreaks.com/topic/17775-google-navigation/ Share on other sites More sharing options...
GingerRobot Posted August 16, 2006 Share Posted August 16, 2006 store the last page in a variable then when you echo out the page number make sure its no more than 10 less than the last page. Link to comment https://forums.phpfreaks.com/topic/17775-google-navigation/#findComment-75892 Share on other sites More sharing options...
Exussum Posted August 16, 2006 Share Posted August 16, 2006 i would use a get varable page.php?start=13that any help ? or you want an exaple Script Link to comment https://forums.phpfreaks.com/topic/17775-google-navigation/#findComment-75893 Share on other sites More sharing options...
king arthur Posted August 16, 2006 Share Posted August 16, 2006 It's really just a matter of what you do in the loop that echos out the pagenumbers and llinks. If, say, you only want 10 page numbers in the row, then start echoing links to page 1 or the current page minus 5, whichever is the higher, and then continue until you reach either the last page or the current page plus 5, whichever comes first. Link to comment https://forums.phpfreaks.com/topic/17775-google-navigation/#findComment-75905 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.