I am building a simple announcement or news database and script. I have 2 dates the date the announcement was entered and the date when it is done.
I was trying to do something like
$todays_date="2002-11-01";
$query = "select * from announcement WHERE end_date >= $todays_date;";
When I run my query everythign is returned, not just the announcements that end after todays date.
In my database the field end_date holds the date like this "2002-10-25" depending the the date set.
How do I go about getting this to work?