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'])) { - +