I have this code in my php and would like to understand it better:
while($row = mysql_fetch_array($result)){
echo $row['name'];
}
How can I turn this into a "for" loop? I tried, but I didn't know how to reference the correct row I wanted...$row[$i]['name'] did not work...
EDIT - The goal is to reverse the echo of the output. So the results are the other way...I only know how to do this with for loops using $i-- –