update the sql connections

pull/59/head
KOUONTCHOU NEIL ARMSTRONG 2023-12-06 03:36:54 +01:00
parent 7f26ff5fc9
commit 71ce1e1345
1 changed files with 7 additions and 4 deletions

View File

@ -25,11 +25,14 @@ session_start();
date_default_timezone_set('Asia/Shanghai'); 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 // Connect to MySQL database
$mysql_host= "localhost"; include "get_mysql_credentials.php";
$mysql_username = "root"; $con = mysqli_connect("localhost", $mysql_username, $mysql_password, "lrr");
$mysql_password = "";
$mysql_db = "lrr";
// $mysql_username, $mysql_password variable declared directly // $mysql_username, $mysql_password variable declared directly
$con= mysqli_connect($mysql_host,$mysql_username,$mysql_password,$mysql_db); $con= mysqli_connect($mysql_host,$mysql_username,$mysql_password,$mysql_db);