...

View Full Version : forum pager



kenny873
03-06-2003, 09: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....

Criteria:

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

thanks

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

mordred
03-06-2003, 12:27 PM
Here's a PEAR class called Pager that should satisfy your needs:
http://pear.php.net/package-info.php?pacid=32

kenny873
03-07-2003, 02: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...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum