mucias gratias ... scusa per la mia tontaggine ma 3 settimane di ferie mi hanno arruginito piu' di quanto pensassi (non che prima fossi sta cima)Originariamente inviato da piero.mac
Devi selezionare il db interessato.
ciaoCodice PHP:$tot= 0;
$query = mysql_query("show table status");
while($res = mysql_fetch_assoc($query)) {
echo "
Nome Tabella: $res[Name]
Tot. size data = $res[Data_length] - size index $res[Index_length]
";
$tot = $tot + $res['Data_length'] + $res['Index_length'];
}
echo "
Totale dati + indici = ". round($tot/1024,'2')." Kb." ;
![]()
![]()


Rispondi quotando