can anyone help this newbie?
i have a MySQL db into which i want users to enter their details, including their age.
The problem is, i also want users to be able to search records by agegroup, rather than by just a single age... so i figure i also need a field in the db named 'agegroup'.
when entering their details, i don't want the user to have to also enter their agegroup. is there a way of having this field automatically filled by the value in the 'age' field?
it would be great if there was a simple SQL answer to this....or should i be attempting this on the PHP side?
T.I.A.