feat: Refactor database connection handling to use centralized configuration

This commit is contained in:
杨水淼
2025-11-12 16:00:32 +08:00
parent 8303ae39f1
commit 4c348e379d
11 changed files with 86 additions and 92 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<?php
ini_set("display_errors","0");
$mysqli = new mysqli('localhost','myquant','_H(lU1_fF*9baRTp','myquant');
include_once __DIR__."/config.php";
$mysqli = new mysqli($db_config['host'],$db_config['username'],$db_config['password'],$db_config['database']);
//ajax: get stock list for select
if($_REQUEST['t']=='stockList'){