From 188e04c73ca26184a9fda4d7b4008eb201af7dd7 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 18:36:39 +0000 Subject: [PATCH] Update file editpage.php --- html/editpage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/editpage.php b/html/editpage.php index ad959926..ffe6113a 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -55,10 +55,10 @@ if(isset($fichier)) { $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); $req = $bdd->prepare("UPDATE articles SET classification = :classification, titre = :titre, resume = :resume WHERE ID = :article"); - $req->bindParam(':classification', (int)$_POST['article-classification']); + $req->bindParam(':classification', $_POST['article-classification']); $req->bindParam(':titre', htmlspecialchars($_POST['article-titre'])); $req->bindParam(':resume', nl2br($_POST['article-resume'])); - $req->bindParam(':article', (int)$_GET['article']); + $req->bindParam(':article', $_GET['article']); if($req->execute()) { $status = "Informations mises à jour"; } else {