i have this code here which permits me to retrieve some dates. I have a today date conserved in this way:
$time = date("d-m-Y");
My date field in the database is a varchar and it's in this format: d-m-Y
How can i compare them? i've used this but it won't work!
SELECT DATE_FORMAT('date','%d-%m-%Y'), id, WHERE date>$time;
Thanks for the help!