mysql_fetch_object is applied once you get the result from query.
The query is run in mysql_query();
In your mysql query, you can use order by clause
Select * from table_name where criteria order by Column_Name [desc].
desc is option if u want to order in descending order. By default it will go for ascending order.
1 Comment