Open Balaji1903 opened 3 months ago
<?php include 'config.php';
// Fetch product details $product_id = isset($_GET['id']) ? intval($_GET['id']) : 0; $product = $conn->query("SELECT * FROM product WHERE id = $product_id")->fetch_assoc();
if (!$product) { die("Product not found."); } ?>
<!DOCTYPE html>
= htmlspecialchars($product['description']) ?>
Price: $= htmlspecialchars($product['price']) ?>
Total Price: $= htmlspecialchars($product['price']) ?>
<?php include 'config.php';
// Fetch product details $product_id = isset($_GET['id']) ? intval($_GET['id']) : 0; $product = $conn->query("SELECT * FROM product WHERE id = $product_id")->fetch_assoc();
if (!$product) { die("Product not found."); } ?>
<!DOCTYPE html>
Product Details
= htmlspecialchars($product['name']) ?>
= htmlspecialchars($product['description']) ?>
Price: $= htmlspecialchars($product['price']) ?>
Total Price: $= htmlspecialchars($product['price']) ?>
Shipping Details