PDA

View Full Version : pagination



Moh
07-09-2008, 10:13 PM
Hey, does anyone know any decent pagination scripts?

I have found a few, but they wen't very customisable.

So does anyone know any customizable paginations or know how to make them :P

Hypertext
08-09-2008, 01:37 AM
To make them it's just a little bit of math. Comon. You can do that...

Excellent2
08-09-2008, 12:32 PM
To make them it's just a little bit of math. Comon. You can do that...Neither can you.

L?KE
08-09-2008, 03:41 PM
http://php.about.com/od/phpwithmysql/ss/php_pagination.htm

I used that when I first learnt, and I built off of it, and experimented with different things.

Obviously it's basic but it works..

Google Search: "PHP Pagination"; first link ... :rolleyes:

Moh
08-09-2008, 04:10 PM
To make them it's just a little bit of math. Comon. You can do that...


http://php.about.com/od/phpwithmysql/ss/php_pagination.htm

I used that when I first learnt, and I built off of it, and experimented with different things.

Obviously it's basic but it works..

Google Search: "PHP Pagination"; first link ... :rolleyes:
I got a simple pagination (http://habbcrazy.net/bth/members.php) with the page numbers, next page, prev page, first page and last page. But I duno how to make it say you want it to display 7 page numbers.
So when you click page number 7 the other pages 1,2,3,4,5,6 and 7 will turn to 8,9,10,11,12,13 so on.

L?KE
08-09-2008, 04:36 PM
Check if the number is divisble by 7, and if it is then make it the limit in the for loop that displays the numbers.

if that makes sense?

Hypertext
08-09-2008, 09:37 PM
Neither can you.
Read my sig.

Excellent2
08-09-2008, 11:32 PM
Read my sig.Read, makes perfect sense, www.dynamicdrive.com - look for Dynamic Content then sub to it "iframes and Ajax" :)

L?KE
09-09-2008, 02:59 PM
Agreed with Excellent2. Bit silly putting that in your sig.

MrCraig
09-09-2008, 03:56 PM
I think i made one of these once but no idea how to do it.. Just think about it logically and it will come to you.

i think the ceil() function is used if i can remember right.

Want to hide these adverts? Register an account for free!