A
Anonymous
Guest
Hi guys,
I am trying to create a dating website where i wanna display our registered users age by refering to the date of birth they entered. Besides of that, i also wanna do searching base on the age i calculated from the system
tasks i wan my system to perform
- calculate the age of the user once they entered date of birth or year of birth
- when a visitor wanna search registered users who are in the range of 20 to 25 years old, the system will search from the database and display the users who fall under this category.. by refering to date of birth / year of birth field
* this is what i hope u guys can give me an idea
- how actually i can calculate how old are they when i write my SQL query ??
by assuming this is what the user entered, display all users who are 20 to 25 years old..
i wanna do something like
SELECT username FROM users WHERE age = (age between 20 to 25)...
hope u guys understand what i am trying to ask.. could u guys help me out on this or let me know where to get such reference..
thanks.
I am trying to create a dating website where i wanna display our registered users age by refering to the date of birth they entered. Besides of that, i also wanna do searching base on the age i calculated from the system
tasks i wan my system to perform
- calculate the age of the user once they entered date of birth or year of birth
- when a visitor wanna search registered users who are in the range of 20 to 25 years old, the system will search from the database and display the users who fall under this category.. by refering to date of birth / year of birth field
* this is what i hope u guys can give me an idea
- how actually i can calculate how old are they when i write my SQL query ??
by assuming this is what the user entered, display all users who are 20 to 25 years old..
i wanna do something like
SELECT username FROM users WHERE age = (age between 20 to 25)...
hope u guys understand what i am trying to ask.. could u guys help me out on this or let me know where to get such reference..
thanks.