/**
* 生成mysql数据字典
*/
header("Content-type: text/html; charset=utf-8");
//配置数据库
$dbserver = "127.0.0.1";
$dbusername = "root";
$dbpassword = "root";
$database = "posp";
//其他配置
$mysql = new MySQLi("$dbserver", "$dbusername", "$dbpassword", "$database") or die("Mysql connect is error.");
$mysql -> set_charset('utf8');
$table_result = $mysql->query('show tables');
$no_show_table = array(); //不需要显示的表
$no_show_field = array(); //不需要显示的字段
//取得所有的表名
while($row = mysqli_fetch_array($table_result)){
if(!in_array($row[0],$no_show_table)){
$tables[]['TABLE_NAME'] = $row[0];
}
}
//替换所以表的表前缀
// if($_GET[