Codice PHP:
while($linea mysql_fetch_array($risultato))
echo 
$linea['nome_campo']; 
non serve il foreach.