Just curious if someone can give me some guidance with this issue of finding birthdates with MySQL.
I currently have a 'calendar' that is setup, it shows 1 month + 3 days before and 3 days after that month.
I have run into an issue which is currently come up because the 'year' isn't the same on the last 3 days, as it will be 2013. So my code to select from MySQL is this
SELECT * FROM contacts WHERE userId = '23' AND Month(dob) IN('12', '01', '01')
And now I need to get a slightly better date comparison I think. My code is that I have 2 dates (2012-12-01) - (2013-01-30)
I know stuff like this has been asked, but I haven't been able to find anything 'decent'... if possible you could help me out that would be greatly appreciated.
In short, I think I just need a better way to 'query' my dates.... thanks in advance!