I have a simple mysql database for my website. It stores contact information basically.I was thinking of a way to add date of births to this database. What is the best was to add this to my database. can i simply choose the field type of date? i ask this question because i dont think i would be much concerned with the year of the birth and i want to store just the month and date.
moreover once i have added the field i would like to run a sql query on a webpage to list the names of the people whose birthdays are coming up within the next few days ( like within the next week )
ANy ideas on what field type ( or how to store the date of birth ),and secondly the query that would run for that . once the field has been added
[highlight]
M.Bajwa
[/highlight]
moreover once i have added the field i would like to run a sql query on a webpage to list the names of the people whose birthdays are coming up within the next few days ( like within the next week )
ANy ideas on what field type ( or how to store the date of birth ),and secondly the query that would run for that . once the field has been added
[highlight]
M.Bajwa
[/highlight]