1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <?php
$result = $db->query('SELECT j.id_match, e1.club, e2.club, j.championnat, j.t_match, j.actif, j.date_reelle, j.resultat, j.score
FROM '.$_PRE.'playoff AS j
INNER JOIN '.$_PRE.'clubs AS e1 ON e1.id_club = j.id_club_dom
INNER JOIN '.$_PRE.'clubs AS e2 ON e2.id_club = j.id_club_ext
ORDER BY j.championnat, j.date_reelle');
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$coche = ($row['actif'] == '1') ? ' checked' : '';
?>
<tr>
<td width="200" class="donnees"><?php echo $row['actif']; ?></td>
<td width="200" class="donnees"><?php echo $row['club']; ?></td>
<td width='20' align='center' class='donnees'><?php echo $row['championnat']; ?></td>
<td class="donnees"><?php echo $row['score']; ?></td>
<td class="donnees" width="20">
<input type="checkbox" name="check[]" id="check[]" value="<?php echo $row['id_match']; ?>"<?php echo $coche; ?> />
</td>
</tr>
<?php
}
?> |
Partager