From 7769f2c611540173797a6b91122085f16c9b2332 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 11 Jul 2007 22:04:08 +0000 Subject: [PATCH] Separate get_vals git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@144 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- design.inc.php | 6 +----- functions.inc.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/design.inc.php b/design.inc.php index 312b150e..f6018c8a 100644 --- a/design.inc.php +++ b/design.inc.php @@ -49,11 +49,7 @@ function page_footer($missing = false) {

diff --git a/functions.inc.php b/functions.inc.php index 919ea25b..9e9081a1 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -29,6 +29,17 @@ function optionlist($options, $selected = array(), $not_vals = false) { return $return; } +function get_vals($query) { + global $mysql; + $result = $mysql->query($query); + $return = array(); + while ($row = $result->fetch_row()) { + $return[] = $row[0]; + } + $result->free(); + return $return; +} + function fields($table) { global $mysql; $return = array();