aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db/mysql.php')
-rw-r--r--phpBB/db/mysql.php34
1 files changed, 16 insertions, 18 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php
index ec64731a68..8aa055640c 100644
--- a/phpBB/db/mysql.php
+++ b/phpBB/db/mysql.php
@@ -74,24 +74,6 @@ class sql_db
//
// Other base methods
//
- function sql_setdb($database)
- {
- if($database != "")
- {
- $this->dbname = $database;
- $dbselect = @mysql_select_db($this->dbname);
- if(!$dbselect)
- {
- sql_close();
- $this->db_connect_id = $dbselect;
- }
- return $this->db_connect_id;
- }
- else
- {
- return false;
- }
- }
function sql_close()
{
if($this->db_connect_id)
@@ -151,6 +133,22 @@ class sql_db
return false;
}
}
+ function sql_affectedrows($query_id = 0)
+ {
+ if(!$query_id)
+ {
+ $query_id = $this->query_result;
+ }
+ if($query_id)
+ {
+ $result = @mysql_affected_rows($query_id);
+ return $result;
+ }
+ else
+ {
+ return false;
+ }
+ }
function sql_numfields($query_id = 0)
{
if(!$query_id)