From 1ebbb937681a6a63e336277d9b3c95c71665b4f1 Mon Sep 17 00:00:00 2001 From: tianya Date: Wed, 19 Aug 2020 17:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=9C=A8PHP7.x=E4=B8=8B=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dede/sys_sql_info.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dede/sys_sql_info.php b/src/dede/sys_sql_info.php index c2923d9..d15df44 100755 --- a/src/dede/sys_sql_info.php +++ b/src/dede/sys_sql_info.php @@ -103,11 +103,14 @@ class MakeDBDocument //列出数据库的所有表 function show( $type='' ) { + global $cfg_soft_lang; $namehtml = $tablehtml = ''; $this->dsql->Execute('me', ' SHOW TABLES; '); + if (version_compare(PHP_VERSION, '7.0.0', '>=')) { + define("MYSQL_NUM", MYSQLI_NUM); + } while( $row = $this->dsql->GetArray('me', MYSQL_NUM) ) { - // print_r($row);exit; $this->dsql->Execute('dd', " Show CREATE TABLE `{$row[0]}` "); $row2 = $this->dsql->GetArray('dd', MYSQL_NUM);