我有這個MYSQLPHP MYSQL ORDER BY DESC然後ASC
SELECT * FROM chat WHERE To_='$NameId' OR From_='$NameId' ORDER BY `DATE` DESC LIMIT 0,50
此代碼返回我的數據順序
1 newest 2 newest 3 newest 4 newest 5 newest
但我想以這種方式
要返回數據5 newest 4 newest 3 newest 2 newest 1 newest
我該怎麼做?
'ORDER BY \'DATE \'ASC'? –
@u_mulder它返回最古老的 – COp
只是'array_reverse'你的輸出在PHP? –