mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00: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:
parent
3ac46fc0fd
commit
2a108490e6
1 changed files with 4 additions and 8 deletions
|
@ -133,15 +133,11 @@ class sql_db
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function sql_affectedrows($query_id = 0)
|
function sql_affectedrows()
|
||||||
{
|
{
|
||||||
if(!$query_id)
|
if($this->db_connect_id)
|
||||||
{
|
{
|
||||||
$query_id = $this->query_result;
|
$result = @mysql_affected_rows($this->db_connect_id);
|
||||||
}
|
|
||||||
if($query_id)
|
|
||||||
{
|
|
||||||
$result = @mysql_affected_rows($query_id);
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -292,7 +288,7 @@ class sql_db
|
||||||
function sql_nextid(){
|
function sql_nextid(){
|
||||||
if($this->db_connection_id)
|
if($this->db_connection_id)
|
||||||
{
|
{
|
||||||
$result = @mysql_insert_id();
|
$result = @mysql_insert_id($this->db_connect_id);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue