Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Location
    Oklahoma City, Oklahoma
    Posts
    39

    Unanswered: Two way ORDER BY in MySQL ... possibly PHP mixture.

    Hey guys, thanks for reading...love the boards much!

    The situation is I need to order by column1 then order by column2.

    Possible?

  2. #2
    Join Date
    Apr 2006
    Location
    Denver, Co. USA
    Posts
    242
    Of course -

    ORDER BY column1, column2

    If you want descending order, any of the combinations are possible -

    ORDER BY column1 DESC, column2

    ORDER BY column1, column2 DESC

    ORDER BY column1 DESC, column2 DESC

  3. #3
    Join Date
    Feb 2005
    Location
    Oklahoma City, Oklahoma
    Posts
    39
    Thank you! Thank you!

    You are well respected by me, thanks for the quick reply too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •