1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-02 04:24:56 +02:00

Fixed problem with next_id and affected_rows

git-svn-id: file:///svn/phpbb/trunk@117 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-03-21 18:32:30 +00:00
parent 3ac46fc0fd
commit 2a108490e6

View File

@ -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