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');
|
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);
|
||||||
|
|
Loading…
Reference in New Issue