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(); include("admin/includes/config.php"); if(isset($_POST['payment_id']) && isset($_POST['amt']) && isset($_POST['name'])){ $payment_id = $_POST['payment_id']; $amt = $_POST['amt']; $name = $_POST['name']; $docid = $_POST['docid']; $location = $_POST['location']; $day = $_POST['day']; $time = $_POST['time']; $booking_date = $_POST['bookingdate']; $payment_status="complete"; $add_on = date('Y-m-d h:i:s'); $add_date = date('Y-m-d'); $order_id = rand(10,100); // $sql = "insert into tbl_payment(patient_id,docter_id,order_id,date,time,amt,payment_id,payment_status,added_on) // values // ('$name','$docid','$order_id','','','$amt','$payment_status','$payment_id','$add_on')"; $SQL = "INSERT INTO tbl_payment set type='Online',patient_id='$name',booking_date='$booking_date',docter_id='$docid',order_id='$order_id',amt='$amt',payment_status='$payment_status',payment_id='$payment_id',added_on='$add_on',day='$day',place='$location',time='$time'"; $result = mysqli_query($con, $SQL) or die(mysqli_error($con)); $sql = "update tbl_slot set add_date='$add_date',seen_flag='1' where id='$time'"; $results = mysqli_query($con, $sql) or die(mysqli_error($con)); // $from = "yixove8094@intsv.net"; // $fromName = 'Vaid Shyam Sunder Vats Clinic & Ayurvedic Research Centre'; // $subject = 'ORDERS'; // //echo $email; // $to = "shahnawazbharuchwala@gmail.com" ; // // $to = "$sid,$ename" ; // $subject = $subject; // // $header = $email . " " . $fname; // $message =' <!DOCTYPE html> // <html> // <div class="row "> // <div class="row" style="border-bottom: 2px solid black"> // <div class=" invoice-header"> // <center><h1 style="color: red">Vaid Shyam Sunder Vats Clinic & Ayurvedic Research Centre</h1></center> // <br><br><br><br> // <center><img src="images/vaidshyam.jpg" style="width: 120px;height: 120px;"></center> // </div> // </div> // <div class="row"> // <span class="font" style="float: left;font-size: 16px;margin-right:25px;"> Dr no :'.$deate.'</span> // <span class="font" style="float: right;font-size: 16px;margin-right:25px;"> prereceptno :'.$order_id.'</span> // <span class="font" style="float: right;font-size: 16px;margin-right:25px;"> Date :'.$add_on.'</span> // </div> // <div class="row invoice-info"> // <div class="col-sm-4 invoice-col font" style="margin-left: 35px;font-style: 12px;"> // To // <address> // <strong>patient Name : '.$sname.'</strong> // <strong>Age : '.$sname.'</strong> // <strong>Address : '.$sname.'</strong> // <strong>Phone No : '.$sname.'</strong> // </address> // </div> // </div> // <br> // <div class="row"> // <div class="" style="margin-left: 15px;"> // <span class="font" style="font-size: 16px;margin-left: 35px;"> Mobile No : </span> // <span class="font" style="font-size: 16px;float:right"> Address :</span> // </div> // </div> // </div> // </html>'; // // echo $header = "From:" . $from; // // $header .= 'From: '.$fromName.'<'.$from.'>' . "\r\n"; // // $header .= 'Cc: '.$ename.''. "\r\n"; // // $header .= 'Cc:shahnawazbharuchwala@gmail.com' . "\r\n"; // // $header .= 'Cc: shahnawazbharuchwala@gmail.com' . "\r\n"; // // More headers // $header .= 'From: <$from>' . "\r\n"; // $header .= 'Cc: myboss@example.com' . "\r\n"; // $header = "MIME-Version: 1.0" . "\r\n"; // $header .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // $sentmail = mail($to, $subject, $message, $header); // if ($sentmail) { // echo "<h5 style='color:green'>Mail Send Successfully......</h5>"; // // echo "<script> // // window.location.href='order_list.php'; // // </script>"; // } else { // echo "<h5 style='color:red'>Mail Not Send Please Try Again......</h5>"; // } } ?>