I am doing a mysql query and trying to get birthdays that match the current day and month.
Here is what I was trying but realized that it wont work properly:
$birthdays = $wpdb->get_results(" SELECT * FROM {$wpdb->usermeta} WHERE meta_key
= 'birthday' AND meta_value
>= UNIX_TIMESTAMP(DATE(NOW()))");
This will pull a birthday of course if the birthday is in this year (not what I need). the birthday is stored in the db as 1304035200
Any help would be greatly appreciated. I have read many of the related posts but they do not help with what I need.