From 71ce1e134596f1432091d6446d39bea5cd095cab Mon Sep 17 00:00:00 2001 From: newtechAI Date: Wed, 6 Dec 2023 03:36:54 +0100 Subject: [PATCH] update the sql connections --- Script.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Script.php b/Script.php index 028baf8..f0021e7 100644 --- a/Script.php +++ b/Script.php @@ -25,11 +25,14 @@ session_start(); date_default_timezone_set('Asia/Shanghai'); +//// Connect to MySQL database +//$mysql_host= "localhost"; +//$mysql_username = "root"; +//$mysql_password = ""; +//$mysql_db = "lrr"; // Connect to MySQL database -$mysql_host= "localhost"; -$mysql_username = "root"; -$mysql_password = ""; -$mysql_db = "lrr"; +include "get_mysql_credentials.php"; +$con = mysqli_connect("localhost", $mysql_username, $mysql_password, "lrr"); // $mysql_username, $mysql_password variable declared directly $con= mysqli_connect($mysql_host,$mysql_username,$mysql_password,$mysql_db);