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

14 lines
321 B
PHP

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