jocast Posted April 13, 2011 Share Posted April 13, 2011 Hello is there a way to do grids in php. I know i can do the table but what about paging? is there a wya to do this? Quote Link to comment https://forums.phpfreaks.com/topic/233640-php-grids/ Share on other sites More sharing options...
requinix Posted April 13, 2011 Share Posted April 13, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/233640-php-grids/#findComment-1201287 Share on other sites More sharing options...
Maq Posted April 13, 2011 Share Posted April 13, 2011 Not sure what you mean by 'grids' exactly, but here's a tutorial: http://www.phpfreaks.com/tutorial/basic-pagination Quote Link to comment https://forums.phpfreaks.com/topic/233640-php-grids/#findComment-1201288 Share on other sites More sharing options...
jocast Posted April 13, 2011 Author Share Posted April 13, 2011 Thank you to both answers, I'll try them and post results. Quote Link to comment https://forums.phpfreaks.com/topic/233640-php-grids/#findComment-1201295 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.