Order mysql results without identifier

Posted by Alex Crooks on Stack Overflow See other posts from Stack Overflow or by Alex Crooks
Published on 2010-05-02T23:03:13Z Indexed on 2010/05/02 23:07 UTC
Read the original article Hit count: 133

Filed under:
|

Usually I would have a table field called ID on auto increment. That way I could order using this field etc.

However I have no control over the structure of a table, and wondered how to get the results in reverse order to default.

I'm currently using

$q = mysql_query("SELECT * FROM ServerChat LIMIT 15");

However like I said there is no field I can order on, so is there a way to tell mysql to reverse the order it gets the results? I.e last row to first row instead of the default.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php