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 error_reporting(E_ALL); ini_set('display_errors', 1); session_start(); include("./admin/includes/config.php"); $order_id = $_GET['id']; $query = "SELECT * FROM `orders` WHERE id = '$order_id' "; $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['total_amt'] . "</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>