PHP fix table and optimized datasheet
//--------------------------Fix table
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 < $count $i + +)
{
$sql 1= $empire->query ("REPAIR TABLE" $ tablename[$i] '; ');
}
printerror ("repairtbsuccess", "changetable.php?mydbname= $dbname");
}
//--------------------------Worry table
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 < $count $i + +)
{
$sql 1= $empire->query ("OPTIMIZE TABLE" $ tablename[$i] '; ');
}
printerror ("optimizetbsuccess", "changetable.php?mydbname= $dbname");
}