diff --git a/html/editpage.php b/html/editpage.php index 678a3f15..a22c24eb 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -54,9 +54,10 @@ if(isset($fichier)) { if(isset($_POST['article-classification']) && isset($_POST['article-image']) && isset($_POST['article-resume']) && isset($_GET['article'])) { $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $req = $bdd->prepare("UPDATE articles SET classification = :classification, titre = :titre, resume = :resume WHERE ID = :article"); + $req = $bdd->prepare("UPDATE articles SET classification = :classification, titre = :titre, image = :image, resume = :resume WHERE ID = :article"); $req->bindParam(':classification', $_POST['article-classification']); $req->bindParam(':titre', htmlspecialchars($_POST['article-titre'])); + $req->bindParam(':image', htmlspecialchars($_POST['article-image'])); $req->bindParam(':resume', nl2br($_POST['article-resume'])); $req->bindParam(':article', $_GET['article']); if($req->execute()) {