Files
Unimarket/config/database.php
T
2025-06-23 22:49:47 +08:00

14 lines
338 B
PHP

<?php
$host = getenv("MYSQLHOST");
$user = getenv("MYSQLUSER");
$password = getenv("MYSQLPASSWORD");
$database = getenv("MYSQLDATABASE");
$port = getenv("MYSQLPORT");
$conn = new mysqli($host, $user, $password, $database, (int)$port);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>