I'm working on a search form were user select age from to. then result displays accroding to search.
My table as these (name,dob,emailid,mobileno) columns
Here is my query
SELECT name,dob, YEAR(CURDATE()) - YEAR(dob) AS age AND age (BETWEEN '25' AND '30') FROM users
Here i'm able to get age based on dob(DateofBirth) but unable to run between query...
How to do so? Is i'm missing up something ?
Kindly help me.
Thanks in Advance