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 Link to comment https://forums.phpfreaks.com/topic/116501-solved-order-by/ 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. Link to comment https://forums.phpfreaks.com/topic/116501-solved-order-by/#findComment-599061 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 Link to comment https://forums.phpfreaks.com/topic/116501-solved-order-by/#findComment-599062 Share on other sites More sharing options...
ronnie88 Posted July 25, 2008 Author Share Posted July 25, 2008 thanks Link to comment https://forums.phpfreaks.com/topic/116501-solved-order-by/#findComment-599096 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.