how to do paging??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dheeraj
Forum Commoner
Posts: 40
Joined: Fri Feb 06, 2009 11:54 am

how to do paging??

Post by dheeraj »

hello guys i m acraching my head for paging, i hd tried many codes bt none was satisfied, so please help me to go it..

Youe help will appriciated

Thanx
User avatar
Mirge
Forum Contributor
Posts: 298
Joined: Thu Sep 03, 2009 11:39 pm

Re: how to do paging??

Post by Mirge »

User avatar
dheeraj
Forum Commoner
Posts: 40
Joined: Fri Feb 06, 2009 11:54 am

Re: how to do paging??

Post by dheeraj »

thanx budy for rply, i had already tried that code, bt problem with that code is that, if there are 20 pages then it will show all 20 numbers from 1 to 20, bt i want paging like google..
User avatar
Mirge
Forum Contributor
Posts: 298
Joined: Thu Sep 03, 2009 11:39 pm

Re: how to do paging??

Post by Mirge »

So take the concepts learned, and modify it to suit your needs.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: how to do paging??

Post by jackpf »

Indeed.

Have a play with mysql's LIMIT clause. Once you've mastered that, it's just a matter of simple mathematics.
Post Reply