hello,
i have a date field yyyy-mm-dd that is the member_since field for a database.
i'm trying to pull all users whose anniversary date is equal to today.
so, i get today's date in mm-dd format. only thing is, i'm not sure of the syntax for the sql.
i thought something like this:
$users = $db->get_results("SELECT name, email FROM users where (date_format(member_since, '%c/%e') as anniversary) = '$thismonth'");
of course, this isn't quite working.
suggestions?