I want to add a filter to my MySQL query based on users birthday.
Providing:
$cur_year = 2012
$cur_month = 07
$cur_day = 18
How do I do the difference $cur_year - $minAge and then display -07-19 (month and day)
I’m trying this:
`Birthday` < $cur_year - $minAge'-$cur_month-$cur_day'
I’m reasonably certain you are trying to do something like this:
In each returned row, the
isOldEnoughkey in the result will contain1if the user is 18 years old, or0if they aren’t.