From d441783ca34af35ef7f139dc6f52fad62bd61a75 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 2 Mar 2013 12:19:06 +0000 Subject: feature:65 add pwg_db_errno and pwg_db_error git-svn-id: http://piwigo.org/svn/trunk@21088 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_mysqli.inc.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/dblayer/functions_mysqli.inc.php') diff --git a/include/dblayer/functions_mysqli.inc.php b/include/dblayer/functions_mysqli.inc.php index 97c1b873e..2c7f0c6af 100644 --- a/include/dblayer/functions_mysqli.inc.php +++ b/include/dblayer/functions_mysqli.inc.php @@ -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; -- cgit v1.2.3