From d720b185db15a2edcd95f21b03cf1a4b38c2f36a Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Sun, 5 Nov 2023 17:06:04 +0100 Subject: [PATCH] =?UTF-8?q?oubli=C3=A9=20de=20cast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bdd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdd.php b/bdd.php index d6a645b..39d73b4 100644 --- a/bdd.php +++ b/bdd.php @@ -150,7 +150,7 @@ function saveFilesFromPost($postData,$id_ensemble) { foreach ($exercices as $key => $ex) { // premièrement, on enregistre l'exercice $sql= 'INSERT INTO exercices (commentaire_auteur,ensemble_id,duree) VALUES(?,?,?)'; - $conn->execute_query($sql,array($ex["commentaire_exo"],$id_ensemble,$ex["duree"])); + $conn->execute_query($sql,array($ex["commentaire_exo"],$id_ensemble,intval($ex["duree"]))); $id_exo = mysqli_insert_id($conn);