= 3.23 && intval(MYSQL_MINOR_VERSION) >= 3) {
// Update table type, comment and order if required by the user
if (isset($submitcomment)) {
if (get_magic_quotes_gpc()) {
$comment = stripslashes($comment);
}
if (empty($prev_comment) || urldecode($prev_comment) != str_replace('"', '"', $comment)) {
$result = mysql_query('ALTER TABLE ' . backquote($table) . ' COMMENT = \'' . sql_addslashes($comment) . '\'') or mysql_die();
}
}
if (isset($submittype)) {
$result = mysql_query('ALTER TABLE ' . backquote($table) . " TYPE=$tbl_type") or mysql_die();
}
if (isset($submitorderby) && !empty($order_field)) {
$order_field = backquote(urldecode($order_field));
$result = mysql_query('ALTER TABLE ' . backquote($table) . 'ORDER BY ' . $order_field) or mysql_die();
}
// Get table type and comments
$result = mysql_query('SHOW TABLE STATUS LIKE \'' . sql_addslashes($table, TRUE) . '\'') or mysql_die();
$showtable = mysql_fetch_array($result);
$tbl_type = strtoupper($showtable['Type']);
if (isset($showtable['Rows']) && $showtable['Rows']>0) {
?>
[
]
[
]
[
]
[
]
[ ]
[ ]
[
]
[ ]
0) {
?>
|
= 3.23 && intval(MYSQL_MINOR_VERSION) > 3 && $nonisam == FALSE && isset($showtable)) {
// Gets some sizes
$mergetable = FALSE;
if (isset($showtable['Type']) && $showtable['Type'] == 'MRG_MyISAM') {
$mergetable = TRUE;
}
list($data_size, $data_unit) = format_byte_down($showtable['Data_length']);
if ($mergetable == FALSE) {
list($index_size, $index_unit) = format_byte_down($showtable['Index_length']);
}
if (isset($showtable['Data_free']) && $showtable['Data_free'] > 0) {
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']);
if (isset($showtable['Rows']) && $showtable['Rows']>0) {
list($avg_size, $avg_unit) = format_byte_down(($showtable['Data_length'] + $showtable['Index_length']) / $showtable['Rows'], 6, 1);
}
// Displays them
if ($index_count > 0) {
echo ' | ' . "\n";
}
?>
|
|
|
|
'
: ' ';
echo "\n";
?>
|
|
'
: ' ';
echo "\n";
?>
|
|
0) {
echo (++$i%2)
? ' '
: ' ';
echo "\n";
?>
ø |
|
0 && $mergetable == FALSE) {
echo (++$i%2)
? ' '
: ' ';
echo "\n";
?>
ø |
|
'
: ' ';
echo "\n";
?>
Autoindex |
|
|