I have a facebook app that stores users birthday in mysql db as a varchar. Im trying to get all the users birthday that are
coming up in 1 week,
if it’s during the current week
and if the birthday was last week.
in my php i get the birthday and convert them with strtotime()
I can easily check if the birthday is today
if (date('m-d') == date('m-d', $bday)) {
// today is your bday!!
}
Im lost when it comes to comparing dates aahaha I know I can use strtotime(‘nextweek’) or something like that, but im not sure
The query would be like :
for the range within past week and next week.