Not sure how to construct such a query, would it go something like this:
$result = mysql_query("show table status");
if(mysql_num_tables($result)==1) { //<
while($tables=mysql_fetch_fields($result,MYSQL_ASSOC)) {
$Data_length+=$Data_length;
$Index_length+=$Index_length;
}
$dbsize=$Data_length + $Index_length);
Many thanks,
Peter