sp@rky13 Posted October 17, 2009 Share Posted October 17, 2009 What I want do is basically show the first 100 results (rows) in one place on a page and then the next 100 on the next and so one. how can this be done. So I started with this. Not sure if it helps or not but oh well. So find the number of rows and set variable: $numrows = mysql_num_rows($result); and then I would think all I would have to do is some how do something like maybe variable a ($a) would have the first 100 rows and then variable b ($b) would have the next 100. Is this at all possible? It doesn't have to use the variables, I just though that that might explain it Link to comment https://forums.phpfreaks.com/topic/177989-seperating-by-number-of-rows/ Share on other sites More sharing options...
xtopolis Posted October 17, 2009 Share Posted October 17, 2009 CV wrote a nice tutorial just for you on Pagination. It should have all the answers you need. Link to comment https://forums.phpfreaks.com/topic/177989-seperating-by-number-of-rows/#findComment-938450 Share on other sites More sharing options...
sp@rky13 Posted October 17, 2009 Author Share Posted October 17, 2009 Thank you. I don't have time as it's lunch time now to read it but I will read it later Link to comment https://forums.phpfreaks.com/topic/177989-seperating-by-number-of-rows/#findComment-938453 Share on other sites More sharing options...
sp@rky13 Posted October 17, 2009 Author Share Posted October 17, 2009 Ok a very stupid question I would think but I just can't find how to do it in the tutorial. I'm very likely missing it lol. Anyway, looking through the tutorial, I see that it has this: // echo data echo $list['id'] . " : " . $list['number'] . "<br />"; which is where i would put my echo command obviously but I can't find where I would put the actual query. I know it's there somewhere but I can't find it in the tutorial/code Link to comment https://forums.phpfreaks.com/topic/177989-seperating-by-number-of-rows/#findComment-938464 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.