I have from my mysql database:
$event_date -> (mysql query get database from events) 2013-10-09
In a variable I have
$var_date = "2013-10-09"
if ($event_date == $var_date) {
bla bla (but this doesn't work)
}
I remember having this problem with another website but I don't remember. The data query from the database is not equal to a normal variable even if it contains the same thing. How can I make it to like convert to the same format?
Thank you world.
EDIT: When I echo them, they are exactly the same.