1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

various fixes and alterations

git-svn-id: file:///svn/phpbb/trunk@4118 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2003-06-12 17:11:43 +00:00
parent 68f6998a4c
commit dee0f40fd2
7 changed files with 298 additions and 207 deletions

View File

@@ -35,10 +35,7 @@ class sql_db
var $num_queries = 0;
var $open_queries = array();
//
// Constructor
//
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $port = false, $persistency = false)
function sql_connect($sqlserver, $sqluser, $sqlpassword, $database, $port = false, $persistency = false)
{
$this->persistency = $persistency;
$this->user = $sqluser;
@@ -56,7 +53,7 @@ class sql_db
}
}
$this->sql_error('');
return $this->sql_error('');
}
//
@@ -415,11 +412,6 @@ class sql_db
function sql_error($sql = '')
{
$result = array(
'message' => @mysql_error(),
'code' => @mysql_errno()
);
if (!$this->return_on_error)
{
if ($this->transaction)
@@ -434,6 +426,10 @@ class sql_db
trigger_error($message, E_USER_ERROR);
}
$result = array(
'message' => @mysql_error(),
'code' => @mysql_errno()
);
return $result;
}