prepare('SELECT * FROM articles WHERE id = ?'); $stmt->execute([$id]); $article = $stmt->fetch(); if (!$article) { http_response_code(404); die('

404 - Article introuvable

'); } ?> <?= htmlspecialchars($article['titre']) ?>

Retour