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! 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
Archived
This topic is now archived and is closed to further replies.