1 2 3 4 5 6 7 8
| <?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') or die ('Erreur SQL !'.$sql.''.mysql_error());
while ($row = $result->fetch()) {
unset($coche);
if($row['5'] == '1') $coche = "checked";
echo "\n<tr>\n<td width='200' class='donnees'>".$row['1']."</td>\n<td width='200' class='donnees'>".$row['2']."</td>\n<td width='20' align='center' class='donnees'>".$row['3']."</td>\n<td class='donnees'>".$row['9']."</td>\n<td class='donnees' width='20'><input type='checkbox' name='check[]' id='check[]' value='".$row['0']."' $coche /></td>\n</tr>\n";
}
?> |
Partager