Moin!
$db = mysql_connect($mysql_host, $mysql_user, $mysql_pasw);
echo "<pre>";
$sqlab = "show table status from $datenbank like '$tbl_name';";
$rok = mysql_db_query("$datenbank", $sqlab);
$result = mysql_fetch_array($rok);
echo (($result[Data_length]+$result[Index_length])/1024/1024)." MB";
echo "</pre>";
mysql_close($db);
Notice: Use of undefined constant Data_length - assumed 'Data_length' in FILENAME on line XYZ
Notice: Use of undefined constant Index_length - assumed 'Index_length' in FILENAME on line XYZ
Siehe http://de.php.net/manual/de/language.types.array.php -> "Warum ist $foo[bar] falsch?"
- Sven Rautenberg
--
ss:) zu:) ls:[ fo:} de:] va:) ch:] sh:) n4:# rl:| br:< js:| ie:( fl:( mo:|
ss:) zu:) ls:[ fo:} de:] va:) ch:] sh:) n4:# rl:| br:< js:| ie:( fl:( mo:|