MySQL Forums
Forum List  »  Newbie

ORDER BY DATE
Posted by: Mauro Perez
Date: December 31, 2012 09:19AM

Hello i want someone to help me with this:
I need to order by date descendent in a php-mysql script im using the next line

SELECT * FROM `novedades` ORDER BY DATE_FORMAT(fecha, "Y-m-d") DESC LIMIT 0,25;

i tried also with

SELECT * FROM `novedades` ORDER BY DATE_FORMAT(fecha, "Y-m-d") ASC LIMIT 0,25;
and
SELECT * FROM `novedades` fecha ASC LIMIT 0,25;
and
SELECT * FROM `novedades` fecha DESC;
etc...etc...etc...

Options: ReplyQuote


Subject
Written By
Posted
ORDER BY DATE
December 31, 2012 09:19AM
December 31, 2012 12:46PM
January 01, 2013 11:41AM
January 01, 2013 01:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.