hello
i am trying to order the timestamp field to show records in order using the following query:
$result = mysql_query("SELECT name, date_format(DATE_ADD(time,
INTERVAL 6 HOUR), '%M %e, %Y at %H:%i') AS time FROM table ORDER BY time ASC") or die (mysql_error());
however the date_format seems to be messing it up. they order by month but not full date, so rather than in order they look like this:
november 01
november 02
november 05
october 27
does anyone know how to get around this?
thank you.