feat: Refactor database connection handling to use centralized configuration
This commit is contained in:
+2
-1
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
ini_set("display_errors","1");
|
||||
include_once "/inc/config.php";
|
||||
//ini_set('error_reporting', 'E_ALL'); //wrong way to open error_reporting
|
||||
//ini_set("error_reporting","32759"); //Right way to set error_reporting
|
||||
$mysqli = new mysqli('localhost','root','nancysimon','myquant');
|
||||
$mysqli = get_mysqli_connection();
|
||||
include_once __DIR__ . "/inc/excelOperate.inc.php";
|
||||
include_once __DIR__ . "/inc/tradeRec.inc.php";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user