From 21c97f38588b3350e9ebc1e37a985b64fd5b9f1b Mon Sep 17 00:00:00 2001 From: mistic100 Date: Fri, 1 Feb 2013 12:18:00 +0000 Subject: feature:65 add fetch_array SQL functions git-svn-id: http://piwigo.org/svn/trunk@20510 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_mysql.inc.php | 5 +++++ include/dblayer/functions_mysqli.inc.php | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'include/dblayer') 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(); -- cgit v1.2.3