Viewing topic:Paging PHP
Page:
1
18-03-2008 - 2:03
how i can maka page like this:
"first back 1 2 3 4 next last"
ex: i have 6 page n i want it view like this
"first back 1 2 3 4 next last" ==> it's the first preview
"first back 2 3 4 5 next last" ==> preview when you in page 4 and clik next
"first back 3 4 5 6 next last" ==> preview when you in page 5 and clik next
"first back 1 2 3 4 next last" ==> preview when you clik first
"first back 3 4 5 6 next last" ==> preview when youi clik last
how to create paging like this??
can you help me??
"first back 1 2 3 4 next last"
ex: i have 6 page n i want it view like this
"first back 1 2 3 4 next last" ==> it's the first preview
"first back 2 3 4 5 next last" ==> preview when you in page 4 and clik next
"first back 3 4 5 6 next last" ==> preview when you in page 5 and clik next
"first back 1 2 3 4 next last" ==> preview when you clik first
"first back 3 4 5 6 next last" ==> preview when youi clik last
how to create paging like this??
can you help me??
18-03-2008 - 11:56
First and Last shouldnt be a problem. Just use 0 and the highest number available.
About the other numbers, just only show the numbers which are higher than the current. So in the for loop only parse a link when it's higher than the counter.
Do you understand this or should i post some code? (according to the tutorial)
About the other numbers, just only show the numbers which are higher than the current. So in the for loop only parse a link when it's higher than the counter.

Do you understand this or should i post some code? (according to the tutorial)
Page:
1
Reply to topic
Reply to topic

