alejandro52 Posted May 26, 2007 Share Posted May 26, 2007 How do i move from one row to another without using while in while($row = mysql_fetch_row($result))? when you fetch thow row and get the data from the first row and you want to move to the next data how to you move the pointer there?In java you would write row.next(). I trying gooling it but couldn't find anything. Quote Link to comment https://forums.phpfreaks.com/topic/53071-solved-quck-question/ Share on other sites More sharing options...
MadTechie Posted May 26, 2007 Share Posted May 26, 2007 mysql_fetch_row($result) will go to the next row.. and return false if theirs no more rows hence the while loop ie $row = mysql_fetch_row($result) //row1 $row = mysql_fetch_row($result) //row2 $row = mysql_fetch_row($result) //row3 Quote Link to comment https://forums.phpfreaks.com/topic/53071-solved-quck-question/#findComment-262191 Share on other sites More sharing options...
alejandro52 Posted May 26, 2007 Author Share Posted May 26, 2007 oh,ok thx a lot. Quote Link to comment https://forums.phpfreaks.com/topic/53071-solved-quck-question/#findComment-262192 Share on other sites More sharing options...
MadTechie Posted May 26, 2007 Share Posted May 26, 2007 remember to click solved (bottom left) i added an example! Quote Link to comment https://forums.phpfreaks.com/topic/53071-solved-quck-question/#findComment-262193 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.