From 9717df0608a46cb71fd696c70a25e6226a1e3c16 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 22 Mar 2022 21:17:14 +0800 Subject: * db config --- config.php | 5 ----- connect.php | 3 ++- db.php | 13 +++++++++++++ 3 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 db.php diff --git a/config.php b/config.php index 700fe83..cae1286 100644 --- a/config.php +++ b/config.php @@ -2,11 +2,6 @@ class Config { - // 数据库连接 - public static $servername = "localhost"; - public static $username = "wod_dba"; - public static $password = ""; - public static $db_name = "musik"; // 数据库表格 public static $tb_album = "album"; diff --git a/connect.php b/connect.php index 8787da3..0a94c31 100644 --- a/connect.php +++ b/connect.php @@ -1,4 +1,5 @@ + connect_error) { diff --git a/db.php b/db.php new file mode 100644 index 0000000..482b0ff --- /dev/null +++ b/db.php @@ -0,0 +1,13 @@ + \ No newline at end of file -- cgit v1.1-26-g67d0