oups erreur php

This commit is contained in:
Guillaume Joffre 2022-06-19 17:28:22 +02:00
parent 21fc691b32
commit ead65dd9b4

View file

@ -90,7 +90,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->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 = 0 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array(0, $planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
@ -108,7 +108,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->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 = 1 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array(1, $planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
@ -125,7 +125,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->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 = 2 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array(2, $planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
@ -142,7 +142,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->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 = 3 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array(3, $planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
@ -159,7 +159,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->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 = 4 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array(4, $planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
@ -175,7 +175,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->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 = 5 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array(5, $planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
@ -192,7 +192,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->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 = 6 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array(6, $planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">