Im trying to create a query that will only call results based on $day. The problem is that the date in the database is stored as 0000-00-00 as a date field.
Heres my query Im trying to get to work.
$query = "SELECT event, event_cat, DATE_FORMAT(event_date, '%d') AS d FROM calendar WHERE d='$day'";
.
Any help would be appreciated.