|
|
@ -81,7 +81,7 @@ final class Database {
|
|
|
|
public static function connect($host = 'localhost', $user, $password) {
|
|
|
|
public static function connect($host = 'localhost', $user, $password) {
|
|
|
|
|
|
|
|
|
|
|
|
// Open a new connection to the MySQL server
|
|
|
|
// Open a new connection to the MySQL server
|
|
|
|
$connection = new Mysqli($host, $user, $password);
|
|
|
|
$connection = @new Mysqli($host, $user, $password);
|
|
|
|
|
|
|
|
|
|
|
|
// Check if the connection was successful
|
|
|
|
// Check if the connection was successful
|
|
|
|
if ($connection->connect_errno) return false;
|
|
|
|
if ($connection->connect_errno) return false;
|
|
|
|