From 8386c4091d32982e420fc12b3612f1c6c04686c8 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 02:13:53 +0000 Subject: [PATCH] Update file upload.php --- html/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/upload.php b/html/upload.php index a45f0f0f..0753658d 100644 --- a/html/upload.php +++ b/html/upload.php @@ -11,7 +11,7 @@ if(isset($_POST['title'])) { $filename = date("YmdHis"); $destination = "../content/journal/" . $filename; $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $upload = $bdd->prepare("INSERT INTO (articles ID, titre, date, auteur) VALUES (:filename, :titre, :date, :auteur)"); + $upload = $bdd->prepare("INSERT INTO articles (ID, titre, date, auteur) VALUES (:filename, :titre, :date, :auteur)"); $upload->bindParam(':filename', $filename); $upload->bindParam(':titre', htmlspecialchars($_POST['titre'])); $upload->bindParam(':auteur', $_SESSION['display_name']);