Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/imyrqtmy/public_html/ayusshiherbs/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); // error_reporting(E_ALL); error_reporting(E_ERROR | E_PARSE); ini_set('display_errors', '1'); include("admin/includes/config.php"); $uemail = $_SESSION['uemail']; // $email = $_SESSION['email']; // print_r($_SESSION['uemail']); // die(); $razorpay_payment_id = $_SESSION['razorpay_payment_id']; $orderNumber = uniqid(); // $grandTotal = ['totalAmount']; $grandTotal = $_SESSION['total_amt']; $_SESSION['email']=$email; // print_r($_SESSION['email']); // die(); // $email = ($_POST['email']); // print_r($_SESSION['email']); // die(); $sql = "UPDATE tbl_orders SET payment_status = 1, payment_id='$razorpay_payment_id' WHERE email='$email' ORDER BY email DESC LIMIT 1"; // print_r($sql); // die(); $query =mysqli_query($conn,$sql); // print_r($query); if($query){ // user Mail $html_message = '<h1>Order Enquiry</h1>'; $html_message = " Your order- $orderNumber is submitted successfully with amount Rs- $grandTotal <br> Thanks <br> Ayusshi Herbs Pvt Ltd"; // ayushihearbspvt.ltd@gmail.com $to ="ayushihearbspvt.ltd@gmail.com"; $subject = "Order Enquriy "; // $header = "From:$email \r\n"; $header = "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n"; $retval = mail ($to,$subject,$html_message,$header); // Admin mail $html_message = '<h1>New Order</h1>'; $html_message = "A new Order has registered with the following details:<br> OrderNumber: $orderNumber <br> Total Amount: $grandTotal <br> Thanks <br> Ayusshi Herbs Pvt Ltd"; $to ="ayushihearbspvt.ltd@gmail.com"; $subject = "Order Enquriy "; // $header = "From:$email \r\n"; $header = "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n"; $retval = mail ($to,$subject,$html_message,$header); // // Send email to user // $userSubject = "Order Enquiry"; // // $userMessage = "Your Order $orderNumber is submitted successfully with amount Rs $grandTotal"; // $userMessage = " Your order- $orderNumber is submitted successfully with amount Rs- $grandTotal \n\n Thanks \n\n Ayusshi Herbs Pvt Ltd"; // // echo $userMessage; die(); // mail($email, $userSubject, $userMessage, $userHeaders); // // print_r($email); // // die(); // // Send email to admin // $adminSubject = "New Order"; // $adminMessage = "A new Order has registered with the following details:\n\nEmail: $email\nOrderNumber: $orderNumber\nTotal Amount: $grandTotal \n\n Thanks \n\n Ayusshi Herbs Pvt Ltd"; // $adminHeaders = "From: susheelkumar12ksd@gmail.com"; // Replace with your email address // mail($email, $adminSubject, $adminMessage, $adminHeaders); $_SESSION['status'] = "Hey! Your Order is submitted successfully"; header('Location: index.php'); } ?>