Hai ragione Alex,
posto anche il PHP......
Codice PHP:
$posizione=0;
$contacts = mysql_connect($hostname_contacts, $username_contacts, $password_contacts) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db($database_contacts, $contacts);
$result = mysql_query("SELECT * FROM temp order by temp_non_coerente DESC ");
while ($row = mysql_fetch_array($result))
{
if ($posizione==0)
{
//echo "<table border='1' align='center' id='t1' class='sortable'><tr><th>POS.</th><th>COPPIA</th>
// <th>GARE</th><th>MEDIA</th><th>PUNTI</th></tr>";
echo "<table class='sortable' id='t1' border='1' align='center'>";
echo "<tr></tr><thead>";
echo "<th align='center'><b>POS.</b></th>";
echo "<th align='center'><b>COPPIA</b></th>";
echo "<th align='center'><b>GARE</b></th>";
echo "<th align='center'><b>MEDIA</b></th>";
echo "<th align='center'><b>PUNTI</b></th></tr>";
echo "</thead>";
}
$posizione = $posizione +1;
$coppia = $row['temp_coppia'];
$coppia_d = str_replace("/", "&", "$coppia");
$gare = $row['temp_quasi_coerente'];
$punti = $row['temp_non_coerente'];
$media = $row['temp_evento'];
echo "<td align='center'><strong>$posizione</strong></td>";
// echo"<td class='C'><a href=\"d_ranking.php?id=$coppia.$anno\">$coppia_d</a></td>";
echo"<td><a href=\"d_ranking.php?id=$coppia.$anno\">$coppia_d</a></td>";
// echo "<td bgcolor='#000000'>$coppia</td>";
echo "<td align='center'>$gare</td>";
echo "<td align='center'>$media</td>";
echo "<td align='center'>$punti</td><tr></tr>";
}
echo "</table>";
if ($posizione==0)
{
echo "<h2 align='center'>Non sono state trovate coppie per questa categoria e Classe</h2>";
}
?>
</div>
</div>
</boby>
</html>