aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-02-01 12:18:00 +0000
committermistic100 <mistic@piwigo.org>2013-02-01 12:18:00 +0000
commit21c97f38588b3350e9ebc1e37a985b64fd5b9f1b (patch)
treede1f927cf45eb80da23a287d586cab4ed4d13821 /include
parent3edee072527b6ac58ee0a7734900758e6606d06e (diff)
feature:65 add fetch_array SQL functions
git-svn-id: http://piwigo.org/svn/trunk@20510 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/dblayer/functions_mysql.inc.php5
-rw-r--r--include/dblayer/functions_mysqli.inc.php5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php
index f8182bdf4..2fbf8d3e9 100644
--- a/include/dblayer/functions_mysql.inc.php
+++ b/include/dblayer/functions_mysql.inc.php
@@ -144,6 +144,11 @@ function pwg_db_num_rows($result)
return mysql_num_rows($result);
}
+function pwg_db_fetch_array($result)
+{
+ return mysql_fetch_array($result);
+}
+
function pwg_db_fetch_assoc($result)
{
return mysql_fetch_assoc($result);
diff --git a/include/dblayer/functions_mysqli.inc.php b/include/dblayer/functions_mysqli.inc.php
index af42b865b..97c1b873e 100644
--- a/include/dblayer/functions_mysqli.inc.php
+++ b/include/dblayer/functions_mysqli.inc.php
@@ -150,6 +150,11 @@ function pwg_db_num_rows($result)
return $result->num_rows;
}
+function pwg_db_fetch_array($result)
+{
+ return $result->fetch_array();
+}
+
function pwg_db_fetch_assoc($result)
{
return $result->fetch_assoc();