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

php 修复表与优化数据表

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-08 17:29:27
Original
1712 people have browsed it
<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");
}

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template