andykupe Posted June 10, 2007 Share Posted June 10, 2007 <?php while($row = mysql_fetch_array($result)){ echo $row['name']. " - ". $row['age']; } ?> For the above code, how come there is no incrementer? Since I am assuming the loop goes down each row after an iteration, how can you get more control over the loop? For example, how could I print every other row? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/54929-explaination-of-while-loop-using-mysql_fetch_array/ 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.