Displaying results order by..

Results 1 to 2 of 2

Thread: Displaying results order by..

  1. #1
    Join Date
    Dec 1969

    Default Displaying results order by..

    I´m using a database to show coming events.<BR>I´m sorting the data by the date, wich I call "datum" while I´m from Sweden. The code looks like this:<BR>Displaying results using 2-step order<BR>"SELECT * FROM tabell1 Where Datum &#062; Date() OR Datum = Date() ORDER BY Datum". <BR>This works good but the problem is that I also want to sort by time, wich I call "tid".<BR>I´ve tried to use "ORDER BY Datum and Tid", but the result is not so good.<BR>So I want to sort by date first and then by time.<BR>How do I manage that?

  2. #2
    Join Date
    Dec 1969

    Default .... ORDER BY Datum, tid

    Just separate with comma(s). That&#039s all.<BR>

Posting Permissions

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