In DB I have a field that contains user's birthday. Example: 01.09.1994 I have a PHP function that calculates of user's birth. Now the thing that I want to do: I want to search all the users with age 18 for example, but I want to do this in the sql query. How can this happen?
"SELECT * FROM `users` WHERE `birth` = '18'"
How with sql to automatically turn the birth(01.09.1994) into ages, without getting the results and then turn the birthday in ages with php?