nadeemshafi9 Posted March 11, 2007 Share Posted March 11, 2007 hello guys i am showing a list of items using the sql "select * from tablname" and loop out the results, i cant seem to get my head around how to page the list, i am used to php so dont be afraid to go technical and in depth. what i whant is my list of items to be shown as a list but devided in to pages, i tried putting it in an array and then getting the size and then deviding it and determinig all the metrics and outputing a list of numbers for pages based on the divisions of the array size and getting where the user wants to be in the list throgh input throgh the URL GETsaying where to start on the array and stuff based on what page was clicked. thanks for any comments Link to comment https://forums.phpfreaks.com/topic/42249-paged-list/ Share on other sites More sharing options...
legohead6 Posted March 11, 2007 Share Posted March 11, 2007 heres a tutorial on pagination which is what i think you are trying to do http://www.phpfreaks.com/tutorials/43/0.php Link to comment https://forums.phpfreaks.com/topic/42249-paged-list/#findComment-204932 Share on other sites More sharing options...
nadeemshafi9 Posted March 16, 2007 Author Share Posted March 16, 2007 thnx very much will do that and have a go, looks perfect thanks Link to comment https://forums.phpfreaks.com/topic/42249-paged-list/#findComment-208767 Share on other sites More sharing options...
nadeemshafi9 Posted March 16, 2007 Author Share Posted March 16, 2007 yeh there were a few errors in that but i think they were there on purpose lol on the mysql counting and postback. i fixed them and it works butifully, thanks again. Link to comment https://forums.phpfreaks.com/topic/42249-paged-list/#findComment-208857 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.