config.php last update
continuous-integration/drone/push Build is passing Details

remotes/origin/mvc-implementation
Dorian HODIN 2 years ago
parent f44d3ab9fc
commit dde5af1443

@ -3,10 +3,6 @@ $username=$_ENV["USER"];
$host=$_ENV["HOST"]; //Get the address IP of the hosting machine $host=$_ENV["HOST"]; //Get the address IP of the hosting machine
$password=$_ENV["PASSWORD"]; //Get the password for the user selected $password=$_ENV["PASSWORD"]; //Get the password for the user selected
$db_name=$_ENV["DATABASE"]; //Get the name of the database $db_name=$_ENV["DATABASE"]; //Get the name of the database
foreach (getenv() as $key => $value) {
echo $key . ' - ' . $value."<br>";
}
try { //Try to connect to the database try { //Try to connect to the database
$connect = mysqli_connect($host, $username, $password, $db_name); //Connecting to database $connect = mysqli_connect($host, $username, $password, $db_name); //Connecting to database
}catch (mysqli_sql_exception){ //If the connection failed }catch (mysqli_sql_exception){ //If the connection failed

Loading…
Cancel
Save