404 - Article non trouvé"; require_once __DIR__ . '/includes/footer.php'; exit; } $id = (int) $_GET['id']; $stmt = $pdo->prepare("SELECT * FROM articles WHERE id = ?"); $stmt->execute([$id]); $article = $stmt->fetch(); if (!$article) { http_response_code(404); echo "
{$article['contenu']}
"; echo "Publié le {$article['date_creation']}"; } require_once __DIR__ . '/includes/footer.php';