prepare( 'INSERT INTO articles (titre, contenu, date_creation) VALUES (:titre, :contenu, :date)' ); $stmt->execute([ ':titre' => $titre, ':contenu' => $contenu, ':date' => date('Y-m-d H:i:s'), ]); // Redirection vers le tableau de bord après ajout header('Location: board.php'); exit; } } ?>
= htmlspecialchars($e) ?>