I have a BirthDate column in MySQL database table to store user\'s date of birth. Now I have form in html/php with two fields(1. Age From 2. Age To).
If user want t
You can get like this
SELECT column1, column2, DATE_FORMAT(FROM_DAYS(TO_DAYS(now()) - TO_DAYS(dob)), '%Y') + 0 as age WHERE age >10 AND age <20 ;