Jump to content

[SOLVED] ORDER BY


ronnie88

Recommended Posts

<?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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.