File manager - Edit - /home/autoph/public_html/connect/home/save_reservation_comments.php
Back
<?php include 'core/database/connect.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); //$toDate = date_create() ->format("Y/m/d"); //$toTime =Explode(":", date('H:i:s')); //$expirationDate = date('Y/m/d', strtotime($toDate. ' + 3 days')); //if submit/ save to database if(isset($_POST['done'])){ $selectedVIN = mysql_escape_string($_POST['selectedVIN']); $salesAgent = mysql_escape_string($_POST['salesAgent']); $reservationComment = mysql_escape_string($_POST['reservationComment']); $EditRecordID = mysql_escape_string($_POST['EditRecordID']); mysql_query("UPDATE `db_vehicle_inventory` SET `reserved`='1', `status`='Reserved', `tagged`='$salesAgent', `remarks`='$reservationComment' WHERE `id`='$EditRecordID'"); echo "<p style='font-family:Arial;font-size:16px;padding:5px;'>UNIT RESERVATION COMPLETE</p>"; exit(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings