Page 1 of 1

how to do paging??

Posted: Tue Oct 13, 2009 4:51 am
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

Re: how to do paging??

Posted: Tue Oct 13, 2009 4:56 am
by Mirge

Re: how to do paging??

Posted: Tue Oct 13, 2009 5:05 am
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..

Re: how to do paging??

Posted: Tue Oct 13, 2009 10:55 am
by Mirge
So take the concepts learned, and modify it to suit your needs.

Re: how to do paging??

Posted: Tue Oct 13, 2009 11:42 am
by jackpf
Indeed.

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