config.php update

remotes/origin/database-api-implementation
Dorian HODIN 2 years ago committed by felixmielcarek
parent d52b8f22a0
commit 204f787e77

@ -4,7 +4,7 @@ function connection(): bool|int|mysqli
{
$username = $_ENV["USER"]; //Get the username
$host = "localhost:3306"; //Get the url of the database
$host = "https://codefirst.iut.uca.fr/containers/mysql_location-dorianhodin"; //Get the url of the database
$password = $_ENV["PASSWORD"]; //Get the password for the user selected
$db_name = $_ENV["DATABASE"]; //Get the name of the database

@ -24,6 +24,7 @@ function insertUserAndReturnList(): array|int
include "config.php";
$res = connection();
print(json_encode(getenv("REMOTE_ADDR")));
if ($res == -1) {
return 2;

Loading…
Cancel
Save