Sort in MYSQL PHP date -


$mydate = date('h:i, j f y'); 11:51, 11 november 2016 

what wrong here?

select id, mydate, date(mydate) date2 mytable order date2 desc limit 5 

its showing me this:

11:41, 10 november 2016 20:17, 4 november 2016 22:49, 9 november 2016 21:04, 9 november 2016 21:32, 3 november 2016 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -