Skip to content

Commit

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

0 comments on commit 21c97f3

Please sign in to comment.