update the sql connections
parent
7f26ff5fc9
commit
71ce1e1345
11
Script.php
11
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);
|
||||
|
|
Loading…
Reference in New Issue