Skip to content
Extraits de code Groupes Projets
Valider be210ca9 rédigé par Animation des soirees's avatar Animation des soirees
Parcourir les fichiers

participants

parent 9bd9309c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -15,9 +15,11 @@ $app->get(
$sam = $samPics[array_rand($samPics)];
$events = $bdd->prepare('SELECT id, title, date, place, description
FROM sam
$events = $bdd->prepare('SELECT s.id, title, date, place, description, GROUP_CONCAT(nick SEPARATOR ", ") as nicks
FROM sam s
LEFT OUTER JOIN sam_users su ON s.id = su.event
WHERE date > '.time().'
GROUP BY s.id
ORDER BY date');
$events->execute();
......@@ -39,6 +41,7 @@ $app->get(
<th>Titre</th>
<th>Description</th>
<th>Salle</th>
<th>Participants</th>
</tr>
</thead>
<tbody>
......@@ -54,6 +57,7 @@ EOF;
<td>$event[1]</td>
<td>$description</td>
<td>$event[3]</td>
<td>$event[5]</td>
</tr>
EOF;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter