diff --git a/includes/connection.php b/includes/connection.php index f94b6d1..b2b8935 100644 --- a/includes/connection.php +++ b/includes/connection.php @@ -4,10 +4,10 @@ $dotenv = \Dotenv\Dotenv::createImmutable('../'); $dotenv->load(); -$host = $_ENV('MYSQL_HOST'); -$db = $_ENV('MYSQL_DB'); -$username = $_ENV('MYSQL_USER'); -$pass = $_ENV('MYSQL_PASS'); +$host = $_ENV['MYSQL_HOST']; +$db = $_ENV['MYSQL_DB']; +$username = $_ENV['MYSQL_USER']; +$pass = $_ENV['MYSQL_PASS']; $dsn = "mysql:host=$host;dbname=$db"; $opt = [