diff options
-rw-r--r-- | it_dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class index 262836a..ac90848 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -220,7 +220,7 @@ function _connect($p = array()) } if (!$this->_link) - $this->_fatal("_connect(): can't create DB link (mysqli_connect {$p['user']}@{$p['server']}, {$p['db']})"); + $this->_fatal("_connect(): can't create DB link (mysqli_connect {$p['user']}@{$p['server']}, {$p['db']}): " . mysqli_connect_error()); if (!(@mysqli_select_db($this->_link, $p['db']))) $this->_fatal("_connect(): can't select database \"{$p['db']}\""); |