smithmr8 Posted February 20, 2008 Share Posted February 20, 2008 Im trying to get it to list something, with numbers. Ie. 1. LINE 2. LINE 3. LINE ect. This code is making them all '1'. Any ideas ? for ($num=1; $num <= 10; $num++ ){ while ($money = mysql_fetch_array($mostmoney)) { echo $num.". ".$money['username']." (£".$money['money'].")<br>"; } } Edit: Solved. Had to put $num++; after the echo. Thanks Link to comment https://forums.phpfreaks.com/topic/92124-for-loop-question-solved/ Share on other sites More sharing options...
Sulman Posted February 20, 2008 Share Posted February 20, 2008 You asked this question in your other post. Please see my reply there: http://www.phpfreaks.com/forums/index.php/topic,183359.0.html Link to comment https://forums.phpfreaks.com/topic/92124-for-loop-question-solved/#findComment-471776 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.