[thelist] Date sort algorithm

Ben Phillips ben at inchima.com
Thu May 30 09:58:01 CDT 2002


> Does anybody know a good date sort algorithm. Im wanting to
> pull a series of events from a MySQL database, sorted in
> order of date using PHP.

are you storing the dates in DATE or DATETIME format?

if so, then simply 'order by datefield' in your mysql query...

benji
inchima.com





More information about the thelist mailing list