aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer
diff options
context:
space:
mode:
Diffstat (limited to 'include/dblayer')
-rw-r--r--include/dblayer/functions_mysql.inc.php30
-rw-r--r--include/dblayer/functions_mysqli.inc.php30
2 files changed, 0 insertions, 60 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php
index 3992ed6c2..760587094 100644
--- a/include/dblayer/functions_mysql.inc.php
+++ b/include/dblayer/functions_mysql.inc.php
@@ -200,36 +200,6 @@ function pwg_db_close()
*
*/
-/**
- * creates an array based on a query, this function is a very common pattern
- * used here
- *
- * @param string $query
- * @param string $fieldname optional
- * @return array
- */
-function array_from_query($query, $fieldname=false)
-{
- $array = array();
-
- $result = pwg_query($query);
- if (false === $fieldname)
- {
- while ($row = mysql_fetch_assoc($result))
- {
- $array[] = $row;
- }
- }
- else
- {
- while ($row = mysql_fetch_assoc($result))
- {
- $array[] = $row[$fieldname];
- }
- }
- return $array;
-}
-
define('MASS_UPDATES_SKIP_EMPTY', 1);
/**
* updates multiple lines in a table
diff --git a/include/dblayer/functions_mysqli.inc.php b/include/dblayer/functions_mysqli.inc.php
index 8dc4e46ce..1a05820dc 100644
--- a/include/dblayer/functions_mysqli.inc.php
+++ b/include/dblayer/functions_mysqli.inc.php
@@ -237,36 +237,6 @@ function pwg_db_close()
*
*/
-/**
- * creates an array based on a query, this function is a very common pattern
- * used here
- *
- * @param string $query
- * @param string $fieldname optional
- * @return array
- */
-function array_from_query($query, $fieldname=false)
-{
- $array = array();
-
- $result = pwg_query($query);
- if (false === $fieldname)
- {
- while ($row = pwg_db_fetch_assoc($result))
- {
- $array[] = $row;
- }
- }
- else
- {
- while ($row = pwg_db_fetch_assoc($result))
- {
- $array[] = $row[$fieldname];
- }
- }
- return $array;
-}
-
define('MASS_UPDATES_SKIP_EMPTY', 1);
/**
* updates multiple lines in a table