From 714829862627b7cd9fd57931a19e11a9bb62794c Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 19:22:22 +0000 Subject: [PATCH] Update file editpage.php --- html/editpage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) {