ronnie88 Posted July 24, 2008 Share Posted July 24, 2008 <?php include 'database.php'; $query = "SELECT va, cash FROM virtuala ORDER BY cash ASC LIMIT 20"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo " VA Name :<b>{$row['va']}</b> <br>" . "Cash : {$row['cash']} <br>"; } ?> How would I going about putting cash in order? from highest to lowest? thanks Quote Link to comment Share on other sites More sharing options...
trq Posted July 24, 2008 Share Posted July 24, 2008 Exactly as you have done providing cash is one of the numeric field types. Quote Link to comment Share on other sites More sharing options...
ronnie88 Posted July 24, 2008 Author Share Posted July 24, 2008 thanks had to change asc to desc thanks again Quote Link to comment Share on other sites More sharing options...
ronnie88 Posted July 25, 2008 Author Share Posted July 25, 2008 thanks 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.