I have this query
//Connects to database
$db = mysql_connect("$server", "$username", "$password"); mysql_select_db("$database",$db);
//Checks for a search and prepares to do a query to the database.
$result = mysql_query(
"SELECT * FROM items, newitems WHERE
items.ItemID = newitems.ItemID AND
items.ID = newitems.ID AND
items.Brand = newitems.Brand AND
newitems.NCategory='$NCategory'
ORDER BY newitems.tt DESC; ", $db);
$myrow = mysql_fetch_array($result);
what this is supposed to do is to list the output by its TimeStamp in a descending order. But when i run this code it gives me the order in which it is in the newitems database. what have i done wrong??? When i connect to MySQL and run the query, it gives me what i need.