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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.