Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: forum pager

  1. #1
    New Coder
    Join Date
    Feb 2003
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up forum pager

    I am doing a forum similar to this one, and I want to do a paging.

    say show 10 records per page....

    does anyone have a good script that is using PEAR?
    if not, mysql_functions would be fine also....

    Criteria:

    I want to have clicks to " Page: 1 2 3 ... 100 "
    I also want to have clicks " << " and " >> "

    thanks

  • #2
    Regular Coder
    Join Date
    Feb 2003
    Location
    East Side/West Side
    Posts
    118
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why don't you look at a "forum like this"'s code?

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here's a PEAR class called Pager that should satisfy your needs:
    http://pear.php.net/package-info.php?pacid=32

  • #4
    New Coder
    Join Date
    Feb 2003
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, I tried using that class but somehow the given example had something wrong with it....

    say i have page 1 2 3
    and when I click next from 2 to 3, it goes back to the URL of 1...

    so i give up and use the following example instead, but this one doesn't have the thing as "FIRST PAGE" "LAST PAGE" or "NEXT" "PREVIOUS"...

    so it would be helpful if I can modify this code, but since my coding is still improving...i can only add two more return values as "value of this.page" and "total pages".

    I cannot do the above requirements...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •