today i wanted to learn how i can order a query in a mysql database by two fields
this is how i did this
$sql = SELECT this FROM thistable ORDER BY this, andthis
Rahul:
hi, i need to use order by in other directions like : date desc and priority asc
i used this : select * from tablename where category = '1' order by date desc, priority asc limit 30
this is not working right
if use this :
select * from tablename where category = '1' order by priority, date desc limit 30
this is working but i want date desc first then priority asc, how to do this please help
rahul