prepare($sql); $stmt->bindParam(':id', $id, PDO::PARAM_INT); $stmt->execute(); $article = $stmt->fetch(PDO::FETCH_ASSOC); if ($article) { echo "
"; echo "

" . htmlspecialchars($article['titre']) . "

"; echo "

PubliƩ le " . htmlspecialchars($article['date_creation']) . "

"; echo "
" . nl2br(htmlspecialchars($article['contenu'])) . "
"; echo "
"; } else { require '404.php'; } } else { require '404.php'; } require '../includes/footer.php'; ?>