From: jakubvrana Date: Wed, 11 Jul 2007 22:04:08 +0000 (+0000) Subject: Separate get_vals X-Git-Tag: v3.0.0~1364 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=7769f2c611540173797a6b91122085f16c9b2332;p=adminer.git Separate get_vals git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@144 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- 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();