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);