mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
feature:65 add pwg_db_errno and pwg_db_error
git-svn-id: http://piwigo.org/svn/trunk@21088 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -179,6 +179,16 @@ function pwg_db_insert_id()
|
||||
return mysql_insert_id();
|
||||
}
|
||||
|
||||
function pwg_db_errno()
|
||||
{
|
||||
return mysql_errno();
|
||||
}
|
||||
|
||||
function pwg_db_error()
|
||||
{
|
||||
return mysql_error();
|
||||
}
|
||||
|
||||
function pwg_db_close()
|
||||
{
|
||||
return mysql_close();
|
||||
|
||||
@@ -189,6 +189,20 @@ function pwg_db_insert_id()
|
||||
return $mysqli->insert_id;
|
||||
}
|
||||
|
||||
function pwg_db_errno()
|
||||
{
|
||||
global $mysqli;
|
||||
|
||||
return $mysqli->errno;
|
||||
}
|
||||
|
||||
function pwg_db_error()
|
||||
{
|
||||
global $mysqli;
|
||||
|
||||
return $mysqli->error;
|
||||
}
|
||||
|
||||
function pwg_db_close()
|
||||
{
|
||||
global $mysqli;
|
||||
|
||||
Reference in New Issue
Block a user