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

remotes/origin/mvc-implementation
Dorian HODIN 2 years ago
parent b53a041b9b
commit ef5111dd0b

@ -83,5 +83,11 @@ steps:
from_secret: db_user
PASSWORD:
from_secret: db_password
networks:
- php_script
depends_on: [ php_script ]
networks :
network_mode : open
external : true
name : php_script

@ -1,8 +1,8 @@
<?php
$username="dafldev"; //Get the username
$host="89.83.53.34"; //Get the address IP of the hosting machine
$password="wrap"; //Get the password for the user selected
$db_name="positiondaflmusic"; //Get the name of the database
$username=$_ENV["USER"]; //Get the username
$host=$_ENV["HOST"]; //Get the address IP of the hosting machine
$password=$_ENV["PASSWORD"]; //Get the password for the user selected
$db_name=$_ENV["DATABASE"]; //Get the name of the database
try { //Try to connect to the database
$connect = mysqli_connect($host, $username, $password, $db_name); //Connecting to database
}catch (mysqli_sql_exception){ //If the connection failed

Loading…
Cancel
Save