how can i get a size of a table in bytes , anyone knows ??
Size of Table
Started by dirkfirst, May 18 2006 05:03 AM
2 replies to this topic
#1
Posted 18 May 2006 - 05:03 AM
|
|
|
#2
Posted 20 May 2006 - 04:33 AM
$sql = "SHOW TABLE STATUS";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
$total = $row['Data_length']+$row['Index_length'];
}
echo($total);
#3
Posted 06 August 2006 - 09:44 AM
Should work perfect. Did you get this working?


Sign In
Create Account


Back to top









