From 78af658f901d7e1809b24eceb09d2f9c61c6cb85 Mon Sep 17 00:00:00 2001 From: Baptiste Date: Fri, 17 Jun 2022 14:31:47 +0200 Subject: [PATCH] float taille planning div --- admin/planning.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/planning.php b/admin/planning.php index bddeb24..4eceab4 100644 --- a/admin/planning.php +++ b/admin/planning.php @@ -42,7 +42,7 @@ if(isset($_POST['send'])) { $desc = htmlspecialchars($_POST['description']); $color = htmlspecialchars($_POST['color']); $order_start = (int) htmlspecialchars($_POST['order_start']); - $len = (int) htmlspecialchars($_POST['length']); + $len = (float) htmlspecialchars($_POST['length']); $num_planning = (int) htmlspecialchars($_POST['num_planning']); $req = $db->prepare("INSERT INTO planning_insa(day, title, description, color, order_start, length, num_planning) VALUES(?, ?, ?, ?, ?, ?, ?)"); @@ -77,7 +77,7 @@ if(isset($_POST['send'])) { - +