I have an age range coming in as a POST variable in the form a-b where a is the lower boundary and b is the upper one.
In my database, the DOB of various people are stored.
Can anyone tell me the BETWEEN query to select the people that are within the age range $lower and $upper, according to their date of birth?
I really hate working with dates!
Many thanks,
Stephen