File manager - Edit - /home/autoph/public_html/voc/home/save_check_in.php
Back
<?php $connect_error = 'Sorry, we\'re experiencing connection problem. Please try again later... Thank you!'; mysql_connect('localhost','root','aee1024') or die ($connect_error); mysql_select_db('db_vts') or die($connect_error); $userID=1; $toDate = date_create() ->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(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings