codice:
<html>
<body>
<form
<table width="100%">
<th> Posizione N° </th>
<th> Concorrente </th>
<th> OraArrivo </th>
<th> TempoUfficiale </th>
<th> TempoPersonale </th>
<th> PACE </th>
<?php
$db_host = "mysql17.aziendeitalia.com:3306";
$db_user = "simonedatabase";
$db_password = "dbtest";
$db_name = "testChrono";
$conn = mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());
mysql_select_db("$db_name",$conn);
$nomeGara = $_GET['gara'];
$risultati = mysql_query("SELECT numero,intToMillis(tempoArrivo) as tempo,HHUff,MMUff,SSUff,CCUff,HHPers,MMPers,SSPers,CCPers,pace FROM $nomeGara order by tempoArrivo");
$numPartecipanti = mysql_num_rows($risultati);
$i=0;
while ($i < $numPartecipanti)
{
$numConcorrente = mysql_result($risultati,$i,"Numero");
$tempoArrivo = substr(mysql_result($risultati,$i,"tempo"),0,11);
$tempoUffHH = sprintf("%02d",mysql_result($risultati,$i,"HHUff"));
$tempoUffMM = sprintf("%02d",mysql_result($risultati,$i,"MMUff"));
$tempoUffSS = sprintf("%02d",mysql_result($risultati,$i,"SSUff"));
$tempoUffCC = sprintf("%02d",mysql_result($risultati,$i,"CCUff"));
$tempoPersHH = sprintf("%02d",mysql_result($risultati,$i,"HHPers"));
$tempoPersMM = sprintf("%02d",mysql_result($risultati,$i,"MMPers"));
$tempoPersSS = sprintf("%02d",mysql_result($risultati,$i,"SSPers"));
$tempoPersCC = sprintf("%02d",mysql_result($risultati,$i,"CCPers"));
$pace = number_format(mysql_result($risultati,$i,"Pace"),2);
$i++;
echo "<tr>
<td align=\"center\">$i</td>
<td align=\"center\"> $numConcorrente </td>
<td align=\"center\"> $tempoArrivo </td>
<td align=\"center\"> $tempoUffHH:$tempoUffMM:$tempoUffSS.$tempoUffCC </td>
<td align=\"center\"> $tempoPersHH:$tempoPersMM:$tempoPersSS.$tempoPersCC </td>
<td align=\"center\"> $pace </td>
</tr>";
}
echo "</table></body></html>";
mysql_close;
//sleep(10);
//echo "<meta http-equiv=\"refresh\" content=\"1;url=provaClassifica.php\">";
?>