Codice PHP:
$quanti mysql_num_rows($query) or die (mysql_error());