how to show paging like this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mukeshrasm
    Contributor
    • Nov 2007
    • 254

    how to show paging like this?

    Hi

    I have done paging for my php pages like this

    PREV | 1| 2| 3| 4| 5| 6| 7| 8| 9| 10| 11| NEXT.

    what I want that it should display first five links i.e. PREV | 1| 2| 3| 4| 5| NEXT and user will click say 2 it should display PREV | 1| 2| 3| 4| 5| 6| NEXT

    Hey like in Google pages.

    so how can I do that?

    Thanks!
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    #2
    where is your data

    where is your data that need to be paginated in DB or something else

    Comment

    • nathj
      Recognized Expert Contributor
      • May 2007
      • 937

      #3
      When you write out page 3 (page 2 would be the same as page 1) you need write out the links again to go up by a certain number from the current number-1.

      Comment

      • pradeepjain
        Contributor
        • Jul 2007
        • 563

        #4
        yup

        And ya if the data is in DB ,you can limit the number of entries in a page by LIMIT ,and so .

        Comment

        • nashruddin
          New Member
          • Jun 2008
          • 25

          #5
          or simply use this <link removed>.
          Last edited by Markus; Dec 7 '08, 02:37 PM. Reason: Removed link to complete source code.

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Originally posted by nashruddin
            or simply use this <link removed>.
            Please do not self-promote or link people to complete source code, especially without any explanation to that code.

            Moderator.

            Comment

            Working...