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 Quote Link to comment 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 Quote Link to comment 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.