i get an error with this:
$feb = February;
$query = "SELECT date, number, title, count, date_format(date, '%b %e, %Y') AS readable_date, MONTHNAME(date) AS month from journal WHERE month='$feb'";
if i take out the where condition, it prints ok. why, oh why? i need to select only a specific month from my db using monthname (ie February etc). i would use date_format, but it doesn't display %n as a monthname. i did a search for date and time in selects, but found no info including the where condition. so i am lost.
how can i limit by monthname?
BIG THANKS in advance for clues/help/advice or anything at all,
anne