From 8c81dac17bc685aa28719e7935e3cd7f14180b19 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Wed, 18 Sep 2013 20:22:40 +0200 Subject: [PATCH] Turn on DB debugging --- inside/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inside/functions.php b/inside/functions.php index 809361f..1058051 100644 --- a/inside/functions.php +++ b/inside/functions.php @@ -10,7 +10,7 @@ require_once('credentials.php'); function db_connect($host = "default") { if (!isset ($GLOBALS['db_conn'][$host])) { - $conn = & DB :: connect(getDSN($host)); + $conn = & DB :: connect(getDSN($host), array('debug' => 2)); if (DB :: isError($conn)) { if ($conn->getCode() == -24) { error("Databasen er for øyeblikket utilgjengelig, vennligst forsøk igjen siden.");