Okay, all I want to do is extract the month out of the date.
I have this field in the database called 'menu_date'. After my mysql query, I end up with that date being:
$row['menu_date']
If I echo this, it shows up correctly:
echo $row[menu_date] // produces 2003-05-28
So, I want to say: if the month==05, then do something. But I'm having a devil of a time figuring out how to find out if the month is 05. I've tried:
$the_date=$row['menu_date'];
$this_month=date("m", $the_date);
and using strftime and mktime and a bunch of other stuff. I know it's simple, and I've read php.net on the topic as well as my books, but I'm struggling. Can you help?
Thanks.