Update database.php
This commit is contained in:
1 parent
35fa2c39ea
commit
306f849127
1 file changed
+4
-5
+4
-5
@@ -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!";
|
||||
?>
|
||||
Reference in new issue
Block a user