Codice PHP:
<?php
include 'inc/config.php';
if(
get_magic_quotes_gpc()){
$attivo=true;
}else{
$attivo=false;
}
connettiDB();
?>


<div align="center">         
  <table border="0" cellpadding="0" cellspacing="0" width="99%">          
    <tr>            
      <td width="11" bgcolor="#E2E2E2" align="left"></td>   
      <td width="554" bgcolor="#E2E2E2" align="left">         
       <p align="left"><font face="Verdana" size="2">[b]RISULTATI ULTIMA PARTITA:[/b]</font></td>            </tr>      
                                      <tr>              <td width="11" valign="top" align="left"></td>          
                                          <td width="554" valign="top" align="left">                    
                                          <table align="center" border="0">                                   
                                          <tr>
                                          <td height="10"></td></tr>
<?php
//Impaginazione delle news
$numeroRecord=100;
$pagina $_GET['pagina'];
if (
$pagina == ""){
$pagina 1;
}
$s="SELECT t_risultati.id, t_risultati.squa1, t_risultati.squa2, t_risultati.ris, t_risultati.data FROM t_risultati ORDER BY t_risultati.id DESC";
$ris2=mysql_query($s) or die ("Errore nella selezione delle news: ".mysql_error());
$c=0;
while (
$linea=mysql_fetch_array($ris2)){
    if (
$c == $numeroRecord) break;
    
$squa1=stripslashes($linea['squa1']);
    
$squa2=stripslashes($linea['squa2']);
    
$ris=stripslashes($linea['ris']);
    
$data=stripslashes($linea['data']);
    if(
$c==0){
    echo 
"<tr><td height=\"10\"><table><tr><td width=\"80\"></td><td>[b]Giornata:[/b] ".$data."</td></tr></table></td></tr>";    }
?>                
<tr><td><table cellspacing="2" cellpadding="2"><tr><td width="100"></td><td width="120"><?php echo $squa1?></td><td width="120"><?php echo $squa2?></td><td><?php echo $ris?></td></tr></table></td></tr>
<?php
$c
++;
}
?>
</table>
Spero che cosi funzioni......