=3) { $result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die(); $showtable = mysql_fetch_array($result); $show_comment=$showtable['Comment']; $tbl_type=strtoupper($showtable['Type']); 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 (!empty($showtable['Comment'])){ echo "" . $showtable['Comment'] . "

\n"; $show_comment=$showtable['Comment']; } } $result = mysql_query("SHOW KEYS FROM $table") or mysql_die(); $primary = ""; while($row = mysql_fetch_array($result)) if ($row["Key_name"] == "PRIMARY") $primary .= "$row[Column_name], "; $result = mysql_query("SHOW FIELDS FROM $table") or mysql_die(); ?> >
        "> &zero_rows="> &zero_rows="> &zero_rows="> &zero_rows=">

0) { echo "\n"; } // BEGIN - Calc Table Space - staybyte - 9 June 2001 if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>3 && $tbl_type!="INNODB" && isset($showtable)){ if ($indexcount>0) echo "\n"; echo "\n"; if (!empty($strSpaceUsage)) echo $strSpaceUsage.":\n"; echo "
\n"; if (!empty($strIndexes)) echo $strIndexes.":\n"; ?> > "; if($row["Key_name"] == "PRIMARY") { $sql_query = urlencode("ALTER TABLE ".$table." DROP PRIMARY KEY"); $zero_rows = urlencode($strPrimaryKey." ".$strHasBeenDropped); } else { $sql_query = urlencode("ALTER TABLE ".$table." DROP INDEX ".$row["Key_name"]); $zero_rows = urlencode($strIndex." ".$row["Key_name"]." ".$strHasBeenDropped); } ?> "; } print "
$strDrop";?>
\n"; print show_docu("manual_Performance.html#MySQL_indexes"); echo "
 
\n"; echo ""; echo ""; // Data echo "\n"; list($size,$unit)=format_byte_down($showtable["Data_length"]); echo ""; echo "\n"; // Index echo "\n"; list($size,$unit)=format_byte_down($showtable["Index_length"]); echo ""; echo "\n"; // Overhead if (!empty($showtable["Data_free"])){ echo "\n"; list($size,$unit)=format_byte_down($showtable["Data_free"]); echo ""; echo "\n"; // Effective echo "\n"; list($size,$unit)=format_byte_down($showtable["Data_length"]+$showtable["Index_length"]-$showtable["Data_free"]); echo ""; echo "\n"; } // Total echo "\n"; list($size,$unit)=format_byte_down($showtable["Data_length"]+$showtable["Index_length"]); echo ""; echo "\n"; if (!empty($showtable["Data_free"])){ echo ""; echo ""; echo "\n"; } echo "
$strType"; if (!empty($strUsage)) echo $strUsage; echo "
"; if (!empty($strData)) echo $strData; echo "".$size."".$unit."
$strIndex".$size."".$unit."
"; if (!empty($strOverhead)) echo $strOverhead; echo "".$size."".$unit."
"; if (!empty($strOverhead)) echo $strEffective; echo "".$size."".$unit."
$strTotal".$size."".$unit."
"; $query = "server=$server&lang=$lang&db=$db&table=$table&goto=tbl_properties.php3"; echo "[$strOptimizeTable]"; echo "
\n"; echo "\n"; // Rows Statistic echo " \n"; echo "\n"; if (!empty($strRowsStatistic)) echo $strRowsStatistic.":\n"; echo "\n"; echo ""; echo "\n"; $i=0; if (isset($showtable["Row_format"])){ echo (++$i%2)?"\n"; } if (isset($showtable["Rows"])){ echo (++$i%2)?"\n"; } if (isset($showtable["Avg_row_length"])){ echo (++$i%2)?"\n"; } if (isset($showtable["Auto_increment"])){ echo (++$i%2)?"\n"; } echo "
"; if (!empty($strStatement)) echo $strStatement; echo ""; if (!empty($strValue)) echo $strValue; echo "
":"
\n"; if (!empty($strFormat)) echo $strFormat; echo ""; if ($showtable["Row_format"]=="Fixed" && !empty($strFixed)) echo $strFixed; else if ($showtable["Row_format"]=="Dynamic" && !empty($strDynamic)) echo $strDynamic; else echo $showtable["Row_format"]; echo "
":"
\n"; if (!empty($strRows)) echo $strRows; echo "".$showtable["Rows"]."
":"
\n"; if (!empty($strRowLength)) echo $strRowLength; echo " ø"; echo "".$showtable["Avg_row_length"]."
":"
\n"; echo "$strNext Autoindex"; echo "".$showtable["Auto_increment"]."
\n"; } // END - Calc Table Space ?>
  •  
  •  
  • :

    0) { echo "$strOr $strBookmarkQuery:
    \n"; echo "\n"; echo "".$strSubmit; echo "".$strBookmarkView; echo "".$strDelete; echo "
    \n"; } } ?>
  •  
  • &pos=0&"> " . $strBrowse. ""; ?> -  " . $strSelect . ""; ?>  -  " . $strInsert. ""; ?>
     
  •  
  • :
    \n"; echo ' \n"; echo ' \n"; while(list ($junk,$fieldname) = each($aryFields)) { echo ' \n"; } echo " \n"; ?>
  •  
  •  

  •  
  • :
     

  •  
  • &display=simple&">   - &display=simple&">  
    &display=simple&">   - &display=simple&">  
  •  
  •  
    "; ?>
  •  
  •  
    "; require("./footer.inc.php3"); ?>