From bc115c3c512ebe43ea954f66949298f0a33d3b5b Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Mon, 25 Jan 2016 18:37:13 +0100 Subject: [PATCH] Included port in database parameters --- lib/database.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/database.php b/lib/database.php index 026a7bc..1f9f7d7 100644 --- a/lib/database.php +++ b/lib/database.php @@ -16,12 +16,8 @@ * limitations under the License. */ -$db = new mysqli($config['db_host'], $config['db_user'], $config['db_password']); +$db = new mysqli($config['db_host'], $config['db_user'], $config['db_password'], $config['db_name'], $config['db_port']); if ($db->connect_error) { die("Connection to database failed"); } - -if(!$db->select_db($config['db_name'])) { - die("Database not available"); -} \ No newline at end of file