$result = mysql_query("select * from tab_alunni ORDER BY cognome") or die(mysql_error());