mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Minor connection update
git-svn-id: file:///svn/phpbb/trunk@17 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a3558291dc
commit
91b48b0e2c
1 changed files with 7 additions and 3 deletions
|
@ -49,7 +49,7 @@ class sql_db
|
||||||
}
|
}
|
||||||
else
|
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)
|
if($this->db_connect_id)
|
||||||
{
|
{
|
||||||
|
@ -59,12 +59,16 @@ class sql_db
|
||||||
$dbselect = @mysql_select_db($this->dbname);
|
$dbselect = @mysql_select_db($this->dbname);
|
||||||
if(!$dbselect)
|
if(!$dbselect)
|
||||||
{
|
{
|
||||||
mysql_close($this->db_connect_id);
|
@mysql_close($this->db_connect_id);
|
||||||
$this->db_connect_id = $dbselect;
|
$this->db_connect_id = $dbselect;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return $this->db_connect_id;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return $this->db_connect_id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue