feat: 使用 get_mysqli_connection() 函数重构数据库连接
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
ini_set("display_errors","0");
|
ini_set("display_errors","0");
|
||||||
include_once __DIR__."/config.php";
|
include_once __DIR__."/config.php";
|
||||||
$mysqli = new mysqli($db_config['host'],$db_config['username'],$db_config['password'],$db_config['database']);
|
$mysqli = get_mysqli_connection();
|
||||||
|
|
||||||
//ajax: get stock list for select
|
//ajax: get stock list for select
|
||||||
if($_REQUEST['t']=='stockList'){
|
if($_REQUEST['t']=='stockList'){
|
||||||
|
|||||||
Reference in New Issue
Block a user