Works 100%
Thank you for your reply. Amazing how simple something is when someone else points something out!
Cheers
User Profile
Collapse
-
Date_Format issues.
I am having issues with a MySql query
Code:SELECT *,DATE_FORMAT(startdate, '%d-%m-%Y')AS startdate, startdate as sortdate from {$table} WHERE DATE_FORMAT(startdate, '%d-%m-%Y') >= DATE_FORMAT(now(), '%d-%m-%Y') ORDER BY sortdate ASC
For example it will show the entry with a date of 2010-05-20
...Last edited by Atli; Feb 11 '10, 04:49 PM. Reason: Added [code] tags and added a couple of linebreaks to the query.
No activity results to display
Show More
Leave a comment: