i have two textfield..one for show datepicker and another one for time.. but i want after input to DB they can combine become one field inside DB..so that i set field type as datetime...
to make them combine..i'm doing some manipulation inside process.php page..this is my code:
$sql = "INSERT INTO inspection_report ";
$sql.= "(Model,Serial_number,Line, Shift,Inspection_datetime,Range_sampling,Packing, ";
$sql.= "Accesories,Appearance,Tuner,General_operation,Remark, ";
$sql.= "NIK,Time_inspection) ";
$sql.= "VALUES ('";
$sql.= $Model."','".$Serial_number."','".$Line."','".$Shift."','".STR_TO_DATE("'".postVar('insp_date')." ".postVar('time')."'","%M/%d/%Y/ %T")."','".$Range_sampling$
$sql.= $Accesories."','".$Appearance."','".$Tuner."','".$General_operation."','".$Remark."','";
$sql.= $NIK."','".$Time_inspection."')";
but it show error "PHP Fatal error: Call to undefined function STR_To_DATE()"..what must i do to make them can combine without error?