Skip to content

Commit

Permalink
feature:65 add pwg_db_errno and pwg_db_error
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@21088 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Mar 2, 2013
1 parent a69847d commit d441783
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/dblayer/functions_mysql.inc.php
Expand Up @@ -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();
Expand Down
14 changes: 14 additions & 0 deletions include/dblayer/functions_mysqli.inc.php
Expand Up @@ -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;
Expand Down

0 comments on commit d441783

Please sign in to comment.