ghqwerty Posted October 2, 2008 Share Posted October 2, 2008 ok so ive now fixed one thing with my inventory page but want it so that it only shows 10 items per page and then there is a next page button i started to think maybe put a limit on the select query but this would only retrieve the first 10 and nothing more i also thought about just making 2 pages and then having page 2 show 11-20 however this would be ugly and hard to work in and wouldnt be very effective how else would i do it ???? i suppose its a bit like how this forum works once there is a certain amount of topics old topics spill onto the next page Link to comment https://forums.phpfreaks.com/topic/126755-how-would-i/ Share on other sites More sharing options...
JasonLewis Posted October 2, 2008 Share Posted October 2, 2008 What you are talking about is called "Pagination". There are many tutorials out there that can help you with this. Basically you set the limit from a certain point, then limit it by a certain amount. Googling "PHP Pagination Tutorial" should bring up some good results. Link to comment https://forums.phpfreaks.com/topic/126755-how-would-i/#findComment-655609 Share on other sites More sharing options...
ghqwerty Posted October 2, 2008 Author Share Posted October 2, 2008 cheers will go looknow Link to comment https://forums.phpfreaks.com/topic/126755-how-would-i/#findComment-655616 Share on other sites More sharing options...
ghqwerty Posted October 2, 2008 Author Share Posted October 2, 2008 arr my bad spotted the error myself lol Link to comment https://forums.phpfreaks.com/topic/126755-how-would-i/#findComment-655685 Share on other sites More sharing options...
Dan06 Posted October 2, 2008 Share Posted October 2, 2008 Did you mean - alcohol? It looks like the error is caused by misspelling. Link to comment https://forums.phpfreaks.com/topic/126755-how-would-i/#findComment-655697 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.