Jump to content

PHP Grids


jocast

Recommended Posts

http://www.google.com/search?q=php+pagination

 

To paginate with MySQL you use the LIMIT clause with a bit of math.

page number = 4
results per page = 10

start = (page number - 1) * results per page
      = 30
count = results per page
      = 10

query = ... LIMIT start, count
      = ... LIMIT 30, 10

Link to comment
https://forums.phpfreaks.com/topic/233640-php-grids/#findComment-1201287
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.