Liam-a- Posted August 4, 2008 Share Posted August 4, 2008 i wont to select a list of records from a db tables named 'comment' i only want it to have 5 per page and i want somethng like this at the bottom o the page Page: 1 2 3 4 5 Is that possible?? Link to comment https://forums.phpfreaks.com/topic/118095-db-records-on-pages/ Share on other sites More sharing options...
JonnyThunder Posted August 4, 2008 Share Posted August 4, 2008 You'd count how many records there are in total first, then use your mySQL select query using the LIMIT command to get 5 records. Then, calculate your page links based on your total record count from above. There are lots of tutorials on page navigation in PHP - search around in Google. Link to comment https://forums.phpfreaks.com/topic/118095-db-records-on-pages/#findComment-607572 Share on other sites More sharing options...
The Little Guy Posted August 4, 2008 Share Posted August 4, 2008 http://www.phpfreaks.com/tutorial/basic-pagination/page1 Link to comment https://forums.phpfreaks.com/topic/118095-db-records-on-pages/#findComment-607582 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.