0) { try { $pdo = db(); $stmt = $pdo->prepare("SELECT * FROM cars WHERE id = ?"); $stmt->execute([$id]); $car = $stmt->fetch(); } catch (PDOException $e) { $car = null; } } if (!$car) { header("Location: cars.php"); exit; } include __DIR__ . '/includes/header.php'; ?>
<?php echo htmlspecialchars($car['brand'] . ' ' . $car['model']); ?>

Location: | Year:

$

Description