From 7b29e4194bd3cb96bb92c2bc6eb937f3418a7874 Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Fri, 13 Sep 2024 14:58:43 +0200 Subject: [PATCH] bug fix --- gestion_contenu.php | 111 ++++++++++++++++++++++++-------------------- 1 file changed, 60 insertions(+), 51 deletions(-) diff --git a/gestion_contenu.php b/gestion_contenu.php index c62d6a2..e89a674 100644 --- a/gestion_contenu.php +++ b/gestion_contenu.php @@ -1,4 +1,11 @@ prepare("UPDATE documents SET titre = ?, type = ?, commentaire_auteur = ?, ensemble_id = ?, theme_id = ? WHERE id = ?"); - $stmt->bind_param('sisiii', $titre, $type, $commentaire_auteur, $ensemble_id, $theme_id, $id); + echo var_dump($_POST); + + $stmt = $mysqli->prepare("UPDATE documents SET titre = ?, type = ?, commentaire_auteur = ? WHERE id = ?"); + $stmt->bind_param('sisi', $titre, $type, $commentaire_auteur, $id); $stmt->execute(); $stmt->close(); } @@ -71,19 +78,19 @@ $documents = $mysqli->query("SELECT * FROM documents")->fetch_all(MYSQLI_ASSOC);

Manage Ensembles

-
- - - - - - - - - - - - +
IDCommentaire AuteurValideCorrige IncluDate ConceptionAuteur IDAction
+ + + + + + + + + + + + @@ -94,42 +101,44 @@ $documents = $mysqli->query("SELECT * FROM documents")->fetch_all(MYSQLI_ASSOC); - - -
IDCommentaire AuteurValideCorrige IncluDate ConceptionAuteur IDAction
>
-
+ + + + +

Manage Documents

-
- - - - - - - - - - - - - - - - - - - - - - - -
IDTitreTypeUpload PathCommentaire AuteurEnsemble IDTheme IDActions
- - - Delete -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
IDTitreTypeUpload PathCommentaire AuteurEnsemble IDTheme IDActions
+ + + Delete +