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();