From 2a108490e61671fe8822d86168f5bd1e91bbe88d Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 21 Mar 2001 18:32:30 +0000 Subject: [PATCH] Fixed problem with next_id and affected_rows git-svn-id: file:///svn/phpbb/trunk@117 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/db/mysql.php | 12 ++++-------- 1 file 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) + if($this->db_connect_id) { - $query_id = $this->query_result; - } - if($query_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