Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Check Order Status</title>
</head>
<body>
<h1>Check Order Status</h1>
<form action="followOrder.php" method="GET">
<label for="order_id">Enter your order ID:</label>
<input type="text" id="order_id" name="order_id" required>
<button type="submit">Check Status</button>
</form>
<?php
// Include the PHP code to fetch and display order details
include 'connectie.php';
if(isset($_GET['order_id'])) {
$order_id = (int) $_GET['order_id'];
$sql = "SELECT * FROM `orders` WHERE `id` = :order_id"; // Assuming address is used as order ID
$stmt = $conn->prepare($sql);
$stmt->bindParam(':order_id', $order_id);
$stmt->execute();
if($stmt->rowCount() > 0) {
$row = $stmt->fetch(PDO::FETCH_ASSOC);
echo "<h2>Order Details</h2>";
echo "Order ID: " . $row['id'] . "<br>";
echo "Name: " . $row['name'] . "<br>";
echo "Phone: " . $row['phone'] . "<br>";
echo "Email: " . $row['email'] . "<br>";
echo "Address: " . $row['address'] . "<br>";
echo "Pizza: " . $row['pizza'] . "<br>";
echo "Quantity: " . $row['quantity'] . "<br>";
echo "Status: " . $row['status'] . "<br>"; // Display order status
// Add any additional order details you want to display
} else {
echo "<p>Order not found.</p>";
}
}
?>
</body>
</html>