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

remotes/origin/mvc-implementation
Dorian HODIN 2 years ago
parent ac8d03f960
commit f683e4959f

@ -92,7 +92,7 @@ steps:
IMAGENAME: mariadb:10.5 IMAGENAME: mariadb:10.5
CONTAINERNAME: mysql_location CONTAINERNAME: mysql_location
COMMAND: create COMMAND: create
# OVERWRITE: true OVERWRITE: true
# PRIVATE: true # PRIVATE: true
CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD: CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD:
from_secret: db_root_password from_secret: db_root_password

@ -10,7 +10,7 @@ function connection(): bool|int|mysqli
try { //Try to connect to the database try { //Try to connect to the database
return mysqli_connect($host, $username, $password); //Connecting to database return 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