".$lang["tables"]."
".$lang["Query"].": ".htmlentities($sql)."

"; $result = mysqli_query($conn,$sql); $nr = mysqli_num_rows($result); if ($nr =='0') { echo $lang["no_tables"]." !"; } else { echo "

"; while ($row = mysqli_fetch_row($result)) { $vmi[]=$row[0]; } // calculate tbl size and rows $result = mysqli_query($conn,"SHOW TABLE STATUS"); function convert($size) { $unit=array('B','KB','MB','GB','TB','PB'); return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i]; } while($row = mysqli_fetch_array($result)) { $total_size = convert($row[ "Data_length" ] + $row[ "Index_length" ]); $size[$row['Name']] = $total_size."^".$row['Rows']; } include 'pagination.class.php'; $pagination = new pagination; $vmi = $pagination->generate($vmi,$perp); foreach($vmi as $tb) { $a= explode("^",$size[$tb]); echo " ".htmlentities($tb)." | ".$a[0]." | ".($a[1] == 1 ? '1 '.$lang["row"]: $a[1].' '.$lang["rows"])."
"; } echo "

"; echo $pagination->links(); mysqli_free_result($result); } echo "
- - -

".$lang["Show"]."

".$lang["Add_table"]." | ".$lang["Sql_code"]." | ".$lang["Export"]." | ".$lang["Upload_sql"]." | ".$lang["Import_sql"]." | ".$lang["Files"]."

$nr ".strtolower($lang["tables"])." "; include('foot.php'); ?>