1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| $kartdelocation = mssql_query("Select * From KARTDECOURSE Where previous!=0 ORDER BY POS");
$nb_karts = mssql_fetch_array(mssql_query("Select Count(*) From KARTDECOURSE Where previous!=0"));
echo'<center>';
echo"<table>";
echo '<tr bgcolor="#bf2b2f"><td><font color="FFFFFF">POS</font></td><td><font color="FFFFFF">NOM </font></td><td><font color="FFFFFF">ECART </font></td><td><font color="FFFFFF">LAST</font></td><td><font color="FFFFFF">BEST</font></td></tr>';
while($resultat = mssql_fetch_array($kartdelocation)){
if($i%2==0)
{
echo '<tr bgcolor="#FFFFFF"><td>'.$resultat['POS'].'</td><td>'.htmlentities($resultat['PILOTE_NOM']).'</td><td>'.$resultat['ECART'].'</td><td>'.$resultat['ALAST_DU_J'].'</td><td>'.$resultat['ABEST_DU_J'].'</td></tr>';
}
else
{
echo '<tr bgcolor="#ffefd5"><td>'.$resultat['POS'].'</td><td>'.htmlentities($resultat['PILOTE_NOM']).'</td><td>'.$resultat['ECART'].'</td><td>'.$resultat['ALAST_DU_J'].'</td><td>'.$resultat['ABEST_DU_J'].'</td></tr>';
}
$i++;
}
echo"</table>";
echo'</center>'; |