Forum Moderators: coopster
can anybody tell me how to do or where to find such a paging script like the digg paging:
I have a mysql database with hundreds of records and I want to show 10 items per page. And I also would like to have that not ALL the numbers are shown because I have thousands of items in the database.
Thanks for your help in advance! :)
[edited by: jatar_k at 1:28 am (utc) on Nov. 4, 2007]
[edit reason] no urls thanks [/edit]
To select the actual items on that page, use LIMIT and OFFSET. Example: SELECT a, b, c FROM xyz LIMIT 10 OFFSET 20
The limit is how many items to show per page, offset is (page number - 1) * items per page.