[PHP-DB] Converting Date Form Fields

2001-11-16 Thread Zach Curtis
I have two HTML form fields birthMonth (e.g., Jan=1, Feb=2...) and birthYear (e.g., 2001=2001, 1999=1999...). How can take these two individual form fields, then add in a default value of 1 for the birthDay (this is not asked in the form), and put this data into a MySQL table field birthDate with

RE: [PHP-DB] Converting Date Form Fields

2001-11-16 Thread matt stewart
is Jan, you need a case statement, or something like that to make sure you change it to 01. Hope it helps ;) Matt -Original Message- From: Zach Curtis [mailto:[EMAIL PROTECTED]] Sent: 16 November 2001 16:02 To: [EMAIL PROTECTED] Subject: [PHP-DB] Converting Date Form Fields I have two HTML

RE: [PHP-DB] Converting Date Form Fields

2001-11-16 Thread Zach Curtis
to $date_month is Jan, you need a case statement, or something like that to make sure you change it to 01. Hope it helps ;) Matt -Original Message- From: Zach Curtis [mailto:[EMAIL PROTECTED]] Sent: 16 November 2001 16:02 To: [EMAIL PROTECTED] Subject: [PHP-DB] Converting Date Form Fields