I have a select date field in my HTML form created using Javascript as follow:
<tr>
<td valign="top"><label for="received">Received Date:</label></td>
<td valign="top"><select id="daydropdown" name="rcvdy"></select>
<select id="monthdropdown" name="rcvmon"></select>
<select id="yeardropdown" name="rcvyr"></select> *</td>
</tr>
I would like to register the date input from the form into MySQL database. Do I need to create multiple field columns for each "day" "month" "year" input on my PHP file? Like this
$query=mysql_query('CREATE TABLE shiplog ( shpdy timestamp(2) NOT NULL, shmon timestamp(2) NOT NULL, shpyr timestamp(4) NOT NULL)')
DATETIMEorTIMESTAMPfield!