Conta le righe estratte...
codice:
$lista = mysql_list_tables("$dbNAME");

$num = mysql_num_rows($lista);

if($num > 0 )   {

    while ($vettore = mysql_fetch_row($lista)) {
        echo ("<a href=\"carica.php?spec=$vettore[0]\" >$vettore[0]</a>
\n");  }
 
} else { echo "ciccia per i gatti";  }