Im having a little problem date sorting.
basicly I have some dates in a mysql database with other information, thing is I have it sorted by the lastest date (or post) problem is its not sorting it correctly
$sql = "SELECT * FROM AO_ForumTopics WHERE FForum = '".$did."' ORDER BY sorttime DESC LIMIT $offset2, $limit";
the post page inserts this intot he date field
$sorttime = date("y-m-j g:i a");
is there a better way to do this?
basicly im getting this with my sort mix up
03-09-6 4:14 pm
03-09-6 4:12 pm
03-09-12 12:58 pm
03-09-11 11:58 pm