format("Y/m/d"); $toTime =Explode(":", date('H:i:s')); error_reporting(0); //if submit/ save to database if(isset($_POST['done'])){ echo "Submit "; $vPlate = mysql_escape_string($_POST['vPlate']); $KMReading = mysql_escape_string($_POST['KMReading']); $driver = mysql_escape_string($_POST['driver']); $checkIn = mysql_escape_string($_POST['checkIn']); //insert mysql_query("INSERT INTO `vts_IN_OUT_history` (`chk_id`, `chk_plate`, `chk_driver`, `chk_km`, `date`, `time`, `chk_transaction`, `user_id`,`deleted`) VALUES('','$vPlate','$driver','$KMReading','$toDate','$toTime','$checkIn','$userID','0') "); exit(); } ?>