1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| include("config.php");
$req="select num_tournoi, nom_tournoi, lieu_tournoi, pays_tournoi, nom_circuit from tournoi t, circuit c where c.num_circuit=t.num_circuit order by nom_tournoi;";
$res=mysql_query($req);
$i=0;
while($row=mysql_fetch_array($res))
{
$nbform=0;
echo("<tr bgcolor=".($i % 2 == 0 ? '#99CCFF' : '#EFEFEF' ).">");
$i++;
$nbform ++;
echo"
<td align='left'>{$row['1']}</td>
<td align='left'>{$row['2']}</td>
<td align='left'>{$row['3']}</td>
<td align='left'>{$row['4']}</td>
<td align='center'><a href='edition_tournoi1.php?id=".$row['0']."'><img src='image/editer.gif' width='37px' height='37px' alt='editer' border='0'></td>
</tr>";
} |
Partager