I have two date fields in my db, one is a CURRENT_TIMESTAMP and the other Date.
I use a date picker to input the date into the date fields in my form.
All other date in the form is input into my db, except the two date fields.
But when i echo both date fields to see if it has been sent by the from, i see it echo,
but just can get into the db
Any help???
This is the insert script below:
if($navtype == "serxbh")
{
$com_name = $_POST['com_name'];
$loc = $_POST['loc'];
$name_mech = $_POST['name_mech'];
$vtype = $_POST['vtype'];
$vreg = $_POST['vreg'];
$dept = $_POST['dept'];
$ser_notes = $_POST['ser_notes'];
$last_startdate = $_POST['last_startdate'];
$due_end_date = $_POST['due_end_date'];
$data_in = $_POST['data_in'];
$put_by = $_POST['put_by'];
$sql = "insert INTO logdata
(com_name,loc,name_mech,vtype,vreg,dept,ser_notes,last_startdate,due_end_date,data_in,put_by)
values
('$com_name','$loc','$name_mech','$vtype','$vreg','$dept','$ser_notes','$last_startdate','$due_end_date','$data_in','$put_by')";
//echo "[ $last_startdate ]";
//echo "$due_end_date";
mysql_query($sql);
echo
"
<table bgcolor='#ffffff' align='center' width='100%' height='50'>
<tr>
<td class='fonts2' align='center' valign='top'>
<br><strong>Reminder for vehicle # <font color='red'>[ $vreg ]</font> Has Been Added</strong>
</td>
</tr>
</table>";
}