Update database.php

This commit is contained in:
ssbg04 authored and GitHub committed 2025-06-23 22:45:52 +08:00
1 parent 35fa2c39ea
commit 306f849127
1 file changed
+4 -5
+4 -5
View File
@@ -1,14 +1,13 @@
<?php
$host = getenv("MYSQLHOST");
$port = getenv("MYSQLPORT");
$user = getenv("MYSQLUSER");
$pass = getenv("MYSQLPASSWORD");
$db = getenv("MYSQLDATABASE");
$password = getenv("MYSQLPASSWORD");
$db = getenv("MYSQLDATABASE");
$port = getenv("MYSQLPORT");
$conn = new mysqli($host, $user, $pass, $db, $port);
$conn = new mysqli($host, $user, $password, $db, $port);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected to MySQL on Railway!";
?>