diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-02-22 18:31:37 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-02-22 18:31:37 +0000 |
commit | 91b48b0e2c6affc780e0e61a364e7c057ec9a9d1 (patch) | |
tree | 9fe9786ebdcb674ba27ea2203f680da1b06d6a1e /phpBB/db | |
parent | a3558291dc5cec7465355935c516f8538c887d4e (diff) | |
download | forums-91b48b0e2c6affc780e0e61a364e7c057ec9a9d1.tar forums-91b48b0e2c6affc780e0e61a364e7c057ec9a9d1.tar.gz forums-91b48b0e2c6affc780e0e61a364e7c057ec9a9d1.tar.bz2 forums-91b48b0e2c6affc780e0e61a364e7c057ec9a9d1.tar.xz forums-91b48b0e2c6affc780e0e61a364e7c057ec9a9d1.zip |
Minor connection update
git-svn-id: file:///svn/phpbb/trunk@17 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db')
-rw-r--r-- | phpBB/db/mysql.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php index 3a24572784..e8205853f2 100644 --- a/phpBB/db/mysql.php +++ b/phpBB/db/mysql.php @@ -49,7 +49,7 @@ class sql_db } else { - $this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password); + echo $this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password); } if($this->db_connect_id) { @@ -59,12 +59,16 @@ class sql_db $dbselect = @mysql_select_db($this->dbname); if(!$dbselect) { - mysql_close($this->db_connect_id); + @mysql_close($this->db_connect_id); $this->db_connect_id = $dbselect; } } + return $this->db_connect_id; + } + else + { + return false; } - return $this->db_connect_id; } // |