|
|
@ -1,8 +1,8 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
$username="dafldev"; //Get the username
|
|
|
|
$username=$_ENV["USER"]; //Get the username
|
|
|
|
$host="89.83.53.34"; //Get the address IP of the hosting machine
|
|
|
|
$host=$_ENV["HOST"]; //Get the address IP of the hosting machine
|
|
|
|
$password="wrap"; //Get the password for the user selected
|
|
|
|
$password=$_ENV["PASSWORD"]; //Get the password for the user selected
|
|
|
|
$db_name="positiondaflmusic"; //Get the name of the database
|
|
|
|
$db_name=$_ENV["DATABASE"]; //Get the name of the database
|
|
|
|
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
|
|
|
|