X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/6ba4f54cea66522716f68591005e6e2806b86713..82ffc3b5413ea30510b30fbd2817e94d2508f024:/mitsql.cfg.php diff --git a/mitsql.cfg.php b/mitsql.cfg.php index 1c96be6..e45c462 100755 --- a/mitsql.cfg.php +++ b/mitsql.cfg.php @@ -47,7 +47,10 @@ require_once('defaults.cfg.php'); if (!OFFLINE) { $cxn = mysql_connect(DBHOST, ADMINUSER, ADMINPASS); mysql_select_db(ADMINDB,$cxn); - if (mysql_error()) die(mysql_error()); + if (mysql_error()) { + require_once('errorhandler.lib.php'); + trigger_error(mysql_error(),E_USER_ERROR); + } } chdir($CWD);