View Full Version : forum pager

03-06-2003, 10:39 AM
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....


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


03-06-2003, 12:33 PM
Why don't you look at a "forum like this"'s code? :)

03-06-2003, 01:27 PM
Here's a PEAR class called Pager that should satisfy your needs:

03-07-2003, 03:05 AM
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...