I have a table that contains a field named date of type timestamp. I would retrieve only rows that of a specific date.
My PHP script receive date in format dd-MM-YYYY
This is how I parse date for query:
$converted_date = date("Y-m-d", strtotime($date));
This is my WHERE clause:
WHERE DATE(date) = '" . $converted_date . "' ORDER BY date DESC"
I always obtain an empty result.