Deviant Logo

Question about Sorting mysql query with php function mysql_fetch_object?

post details top
Jun 8th, 2010
post details top

1 Comment

  • Atif Majid

    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.

Leave a Reply

Search

  • Partner links