From d061ae3ce21590e7300d4a8a4125441aae2cab21 Mon Sep 17 00:00:00 2001 From: Baptiste Date: Sun, 19 Jun 2022 18:09:31 +0200 Subject: [PATCH] index day --- planning.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/planning.php b/planning.php index a22d27e..bdb552d 100755 --- a/planning.php +++ b/planning.php @@ -89,7 +89,7 @@ if(isset($_GET['planning']) AND !empty(['planning'])) prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 0 AND num_planning = ? ORDER BY order_start ASC'); + $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 1 AND num_planning = ? ORDER BY order_start ASC'); $req1->execute(array($planning)); while($r1 = $req1->fetch()) { ?> @@ -107,7 +107,7 @@ if(isset($_GET['planning']) AND !empty(['planning'])) prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 1 AND num_planning = ? ORDER BY order_start ASC'); + $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 2 AND num_planning = ? ORDER BY order_start ASC'); $req1->execute(array($planning)); while($r1 = $req1->fetch()) { ?> @@ -124,7 +124,7 @@ if(isset($_GET['planning']) AND !empty(['planning'])) prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 2 AND num_planning = ? ORDER BY order_start ASC'); + $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 3 AND num_planning = ? ORDER BY order_start ASC'); $req1->execute(array($planning)); while($r1 = $req1->fetch()) { ?> @@ -141,7 +141,7 @@ if(isset($_GET['planning']) AND !empty(['planning'])) prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 3 AND num_planning = ? ORDER BY order_start ASC'); + $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 4 AND num_planning = ? ORDER BY order_start ASC'); $req1->execute(array($planning)); while($r1 = $req1->fetch()) { ?> @@ -158,7 +158,7 @@ if(isset($_GET['planning']) AND !empty(['planning'])) prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 4 AND num_planning = ? ORDER BY order_start ASC'); + $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 5 AND num_planning = ? ORDER BY order_start ASC'); $req1->execute(array($planning)); while($r1 = $req1->fetch()) { ?> @@ -174,7 +174,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
S
prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 5 AND num_planning = ? ORDER BY order_start ASC'); + $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 6 AND num_planning = ? ORDER BY order_start ASC'); $req1->execute(array($planning)); while($r1 = $req1->fetch()) { ?> @@ -191,7 +191,7 @@ if(isset($_GET['planning']) AND !empty(['planning'])) prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 6 AND num_planning = ? ORDER BY order_start ASC'); + $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 7 AND num_planning = ? ORDER BY order_start ASC'); $req1->execute(array($planning)); while($r1 = $req1->fetch()) { ?>