adattati questo:
Codice PHP:
$result_conteggio =  mysql_query("
SELECT COUNT(*) AS totale 
FROM tabella 
"
,$connessione);
$conteggio mysql_fetch_array($result_conteggio);
$totale $conteggio['totale'] ;