I program something in my own laptop(apache,Ubuntu Os) (with php,CodeIgniter) and it will order result by DESC,but when I ran it on other computer (easyphp,win32) it didn't do it.
so I have not same result ,where is the problem and how should I solve it?
I don't wanna use order id by desc
If you want to get a consistent record order with a MySQL query, you must use the ORDER BY
clause. If you refuse to use it, then you must write a sorting function in your script (to use with the usort()
PHP function) to sort the data consistently.