| Server IP : 192.249.121.117 / Your IP : 216.73.216.251 Web Server : Apache System : Linux ded4606.inmotionhosting.com 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64 User : oakben5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/oakben5/public_html/acc/ |
Upload File : |
<?php
error_reporting(0);
date_default_timezone_set('America/Chicago');
if (ini_get('date.timezone')) {
// echo 'date.timezone: ' . ini_get('date.timezone');
}
$visitid=$_GET['vid'];
$messageid = $_GET['mid'];
$dates = date('Y-m-d H:i:s');
$conn = new mysqli("localhost", "root", "Skyline@123#","toakbend_onboarding_test2");
$sql = "INSERT INTO `acknowledge` (`accid`, `visitid`, `messageid`, `timelog`, `status`) VALUES (NULL, '".$conn -> real_escape_string($visitid)."', '".$conn->real_escape_string($messageid)."', '".$conn->real_escape_string($dates)."', '0');";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
$conn->close();
?>