così?

Codice PHP:

$i
=1;
while(
$row=mysql_fetch_array($res))
{
    
$i=$i++;    
    print
"estratto n° $i - id=$row[id] - nome=$row[nome]";