Skip to content

Commit

Permalink
Allow specifying column in get_vals
Browse files Browse the repository at this point in the history
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@608 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information
jakubvrana committed May 21, 2009
1 parent d204a6e commit 0bd864e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.inc.php
Expand Up @@ -28,13 +28,13 @@ function optionlist($options, $selected = null) {
return $return;
}

function get_vals($query) {
function get_vals($query, $column = 0) {
global $dbh;
$return = array();
$result = $dbh->query($query);
if ($result) {
while ($row = $result->fetch_row()) {
$return[] = $row[0];
$return[] = $row[$column];
}
$result->free();
}
Expand Down

0 comments on commit 0bd864e

Please sign in to comment.