diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-03-21 18:32:30 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-03-21 18:32:30 +0000 |
commit | 2a108490e61671fe8822d86168f5bd1e91bbe88d (patch) | |
tree | da446f3dc6a43301f03ab22a5505468b799a5dac /phpBB/db | |
parent | 3ac46fc0fd714a1ba506225a776b61f358e8772d (diff) | |
download | forums-2a108490e61671fe8822d86168f5bd1e91bbe88d.tar forums-2a108490e61671fe8822d86168f5bd1e91bbe88d.tar.gz forums-2a108490e61671fe8822d86168f5bd1e91bbe88d.tar.bz2 forums-2a108490e61671fe8822d86168f5bd1e91bbe88d.tar.xz forums-2a108490e61671fe8822d86168f5bd1e91bbe88d.zip |
Fixed problem with next_id and affected_rows
git-svn-id: file:///svn/phpbb/trunk@117 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db')
-rw-r--r-- | phpBB/db/mysql.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php index 8aa055640c..6682766c73 100644 --- a/phpBB/db/mysql.php +++ b/phpBB/db/mysql.php @@ -133,15 +133,11 @@ class sql_db return false; } } - function sql_affectedrows($query_id = 0) + function sql_affectedrows() { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) + if($this->db_connect_id) { - $result = @mysql_affected_rows($query_id); + $result = @mysql_affected_rows($this->db_connect_id); return $result; } else @@ -292,7 +288,7 @@ class sql_db function sql_nextid(){ if($this->db_connection_id) { - $result = @mysql_insert_id(); + $result = @mysql_insert_id($this->db_connect_id); return $result; } else |