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/vssvclinic/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php error_reporting(E_ALL); ini_set('display_errors', 1); session_start(); include("./Admin/Includes/db.php"); $order_number= $_GET['order_number']; $query = "SELECT * FROM `orders` WHERE order_number = '$order_number' "; $query_run = mysqli_query($con, $query); if (mysqli_num_rows($query_run) > 0) { $row = mysqli_fetch_assoc($query_run); // Fetch the first row if (isset($row['id'])) { $order_id = $row['id']; // Process order ID } else { // Handle missing 'id' key echo "Error: 'id' key is not present in the result set."; } // Output order details // echo "<p>" . $row['totalAmount'] . "</p>"; } else { echo "No order found with ID: $order_id"; } ?> <!-- <input type="radio" id="cod" name="fav_language" value="cod"> <label for="cod">COD</label><br> <a href="cod.php?id=<?php echo $row['id'] ?>">COD</a> --> <!doctype html> <html lang="en"> <head> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php include "includes/title.php" ?> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/all.min.css"> <link rel="stylesheet" href="assets/css/font.css"> <link rel="stylesheet" href="assets/css/swiper.min.css"> <link rel="stylesheet" href="assets/css/style.css"> <link rel="shortcut icon" href="assets/imgs/favicon.png" type="image/x-icon"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"> </head> <body data-sidebar="dark"> <div id="layout-wrapper"> <!-- header --> <!-- header --> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> </div> </div> </div> <div class="row justify-content-center"> <!-- Centering the content --> <div class="col-lg-8"> <!-- Using 6 columns --> <div class="card"> <div class="card-body"> <div class="invoice-title"> <div style="border-bottom: 1px solid;"> <div class="md-4"> <img src="images/vaidshyam.png" alt="logo" height="97" style="padding-top: 3px;position: absolute;padding-left: 62px;"> </div> <div class="md-4"> <h2 class=" font-size-14 table-heading" >Vaid Shyam Sunder Vats Ayurvedic Clinic & Research Centre</h2> </div> </div> </div> <?php $order_number= $_GET['order_number']; $query = "SELECT * FROM `orders` WHERE order_number = '$order_number' "; $query_run = mysqli_query($con, $query); if(mysqli_num_rows($query_run) > 0) { foreach($query_run as $row) { ?> <div class="table-responsive" style="border-bottom: 1px solid;"> <table class="table table-nowrap"> <thead> </thead> <tbody> <tr> <td style="border-bottom-width: 0px;"> <strong> Order Number :</strong> <?php echo $row['order_number']; ?></td> <td style="border-bottom-width: 0px;"> <strong> Date : </strong><?php echo $row['datetime']; ?> </td> </tr> <tr> </tr> </tbody> </table> </div> <div class="table-responsive" style="border-bottom: 1px solid;"> <table class="table table-nowrap"> <thead> </thead> <tbody> <tr> <td style="border-bottom-width: 0px;"><strong> Name :</strong> <?php echo $row['name']; ?> </td> <td style="border-bottom-width: 0px;"><strong>Email : </strong><?php echo $row['email']; ?></td> </tr> <tr> <td style="border-bottom-width: 0px;"><strong> Phone : </strong> <?php echo $row['mobile']; ?></td> <td style="border-bottom-width: 0px;"> <strong> Address : </strong><?php echo $row['address']; ?> </td> </tr> <tr> <td style="border-bottom-width: 0px;"><strong> City : </strong> <?php echo $row['city']; ?></td> <td style="border-bottom-width: 0px;"> <strong> Zip Code : </strong><?php echo $row['pincode']; ?> </td> </tr> <tr> <td style="border-bottom-width: 0px;"><strong> State : </strong> <?php echo $row['state']; ?></td> <td style="border-bottom-width: 0px;"> <strong> Order Amount : </strong><?php echo $row['totalAmount']; ?> </td> </tr> </tbody> </table> <?php }} ?> </div> <div class="table-responsive " > <table > <thead> </thead> <tbody> <tr class="footer-table"> <td style="padding: 8px; font-weight: bold;"> <!-- <strong>+91 6262010119</strong><br> <strong>+91 9212010935</strong><br> --> <strong>6262010119</strong><br> <strong>9212010935</strong><br> </td> <td style="padding: 8px; font-weight: bold;"> <ul> <strong>vssvclinic@gmail.com</strong> </ul> </td> <td style="padding: 8px; font-weight: bold;"> <strong>A-935,Mangolpuri,Near A-Block <br> Post office Mangolpuri ,New Delhi -110083 <br> Open Hours: Mon - Sat 4.00pm - 9.00pm, Sun 9:00am - 9:00pm(Mangolpuri)</strong> </td> <td style="padding: 8px; font-weight: bold;"> <strong>House no -1072, Near karala Stadium, <br> New Delhi-110081 <br> Open Hours: Mon - Sat 8am to 9:30 am(Karala)</strong> </td> </tr> <tr> </tr> </tbody> </table> </div> <div class="d-print-none"> <div class="float-end"> <a href="javascript:window.print()" class="btn btn-success waves-effect waves-light me-1"><i class="fa fa-print"></i></a> </div> </div> </div> </div> </div> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <!-- footer --> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Right Sidebar --> <!-- /Right-bar --> <!-- Right bar overlay--> <div class="rightbar-overlay"></div> <?php include 'Admin/Includes/bscript.php'; ?> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/SmoothScroll.min.js"></script> <script src="assets/js/swiper.min.js"></script> <script src="assets/js/custom.js"></script> </body> </html>