hi, how would i be able to insert the date into my database if i have 3 dropdown boxes wherein it contain the month,day & year. i know the basic of inserting data into my database but with this 3 dropdown box i don't have any idea. after submitting, the data selected on these 3 boxes shall be in one field in my database with fieldname Date . any sample codes for this one?
any help will be appreciated.
eggy ricardo
6:37 am on Oct 13, 2004 (gmt 0)
Hiya,
If it is just a date field, as far as i know you could do something like...
...and use that in your normal INSERT INTO query. year, month and day would need to be the names of the corresponding form elements and the values submitted would need to be in the YYYY, MM and DD formats respectively.
Hope this helps Cheers
Richard
franches
8:42 am on Oct 13, 2004 (gmt 0)
thank you very very much
SofterLogic UK
11:35 am on Oct 13, 2004 (gmt 0)
depending on the form you want, you could use mktime()