= 3) {
// Update table type, comment and order if required by the user
if (isset($submitcomment)) {
$result = mysql_query("ALTER TABLE $table COMMENT='$comment'") or mysql_die();
}
if (isset($submittype)) {
$result = mysql_query("ALTER TABLE $table TYPE=$tbl_type") or mysql_die();
}
if (isset($submitorderby) && !empty($order_field)) {
$result = mysql_query("ALTER TABLE $table ORDER BY $order_field") or mysql_die();
}
// Get table type and comments
$result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die();
$showtable = mysql_fetch_array($result);
$tbl_type = strtoupper($showtable['Type']);
if (!empty($showtable['Comment'])) {
$show_comment = $showtable['Comment'];
?>
0) {
?>
|
3 && $tbl_type != "INNODB" && isset($showtable)) {
// Gets some sizes
list($data_size, $data_unit) = format_byte_down($showtable['Data_length']);
list($index_size, $index_unit) = format_byte_down($showtable['Index_length']);
if (!empty($showtable['Data_free'])) {
list($free_size, $free_unit) = format_byte_down($showtable['Data_free']);
}
list($effect_size, $effect_unit) = format_byte_down($showtable['Data_length'] + $showtable['Index_length'] - $showtable['Data_free']);
list($tot_size, $tot_unit) = format_byte_down($showtable['Data_length'] + $showtable['Index_length']);
// Displays them
if ($index_count > 0) {
echo ' | ' . "\n";
}
?>
|
|
|
|
'
: ' ';
echo "\n";
?>
|
|
'
: ' ';
echo "\n";
?>
|
|
'
: ' ';
echo "\n";
?>
|
|
'
: ' ';
echo "\n";
?>
|
|
|