Home >php教程 >PHP源码 >php 修复表与优化数据表

php 修复表与优化数据表

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-08 17:29:271787browse
<script>ec(2);</script>

php 修复表与优化数据表
//--------------------------修复表
function Ebak_Rep($tablename,$dbname){
 global $empire;
 $dbname=RepPostVar($dbname);
 $empire->query("use `$dbname`");
 $count=count($tablename);
 if(empty($count))
 {
  printerror("EmptyChangeTb","history.go(-1)");
 }
 for($i=0;$i  {
  $sql1=$empire->query("REPAIR TABLE `$tablename[$i]`;");
    }
 printerror("RepairTbSuccess","ChangeTable.php?mydbname=$dbname");
}

//--------------------------忧化表
function Ebak_Opi($tablename,$dbname){
 global $empire;
 $dbname=RepPostVar($dbname);
 $empire->query("use `$dbname`");
 $count=count($tablename);
 if(empty($count))
 {
  printerror("EmptyChangeTb","history.go(-1)");
 }
 for($i=0;$i  {
  $sql1=$empire->query("OPTIMIZE TABLE `$tablename[$i]`;");
    }
 printerror("OptimizeTbSuccess","ChangeTable.php?mydbname=$dbname");
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn