Always force a new MySQL connection

This commit is contained in:
Florian Aders (EleRas)
2012-03-01 15:00:21 +01:00
parent 511d2699e6
commit 86e73e268c

View File

@@ -102,7 +102,7 @@ class db
$this->user = $user; $this->user = $user;
$this->password = $password; $this->password = $password;
$this->database = $database; $this->database = $database;
$this->link_id = @mysql_connect($this->server, $this->user, $this->password); $this->link_id = @mysql_connect($this->server, $this->user, $this->password, 1);
if(!$this->link_id) if(!$this->link_id)
{ {
@@ -110,7 +110,7 @@ class db
if($this->user == 'root') if($this->user == 'root')
{ {
$this->link_id = @mysql_connect($this->server, $this->user, ''); $this->link_id = @mysql_connect($this->server, $this->user, '', 1);
if($this->link_id) if($this->link_id)
{ {