Forse era perchè avevo corretto un errore..prova questo

Codice PHP:
<?php

function quote_smart($value){
  
//togliere i backslash
  
if (get_magic_quotes_gpc())
    
$value=stripslashes($value);
  
//se il valore della variabile non è un numero si mette tra virgolette
  
if (!is_numeric($value))
    
$value="".mysql_real_escape_string($value)."";
  return 
$value;
}

$sqlHost="localhost";
$sqlUsername="..";
$sqlPassword="....";
$sqlDatabase="....";

$link mysql_connect($sqlHost,$sqlUsername,$sqlPassword) || die('Errore nel collegamento:'.mysql_error());
$db mysql_select_db($sqlDatabase$link);
$sqlQuery=sprintf("Select * from utenti Where Nome_Studente=%s and Password=%s",
  
quote_smart($_POST['Nome_Studente']),
  
quote_smart($_POST['Password']));

$result=mysql_query($sqlQuery);

$tabella "<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>";
// scrive in una riga di tabella i nomi dei campi
$num_fields mysql_num_fields($result);
for (
$i=0$i<$num_fields$i++)
    
$tabella .=  "<td>[b]".mysql_field_name($result)."[/b]</td>";
$tabella .= "</tr>";
while(
$row=mysql_fetch_array($result,MYSQL_BOTH)){
        
// restituisce il numero di campi
    
$num_fields mysql_num_fields($result);
        
$tabella .= "<tr>";
        
// scrive in una riga il contenuto di ogni record
        
for ($i=0$i<$num_fields$i++)
           
$tabella .=  "<td>[b]".$row[$i]."[/b]</td>";
        
$tabella .= "</tr>";
}
echo 
$tabella."</table>";

mysql_free_result($result);
mysql_close($link);
?>