aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/dblayer/functions_mysql.inc.php10
-rw-r--r--include/dblayer/functions_mysqli.inc.php14
2 files changed, 24 insertions, 0 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php
index 2fbf8d3e9..9c73637ee 100644
--- a/include/dblayer/functions_mysql.inc.php
+++ b/include/dblayer/functions_mysql.inc.php
@@ -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();
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;