prepare("DELETE FROM products WHERE id = ?"); $stmt->execute([$product_id]); header("Location: admin_products.php"); exit; } $stmt = $pdo->query("SELECT * FROM products ORDER BY created_at DESC"); $products = $stmt->fetchAll(); ?> Manage Products Add New Product Image Name Price Actions $ Edit Delete