mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Separate get_key_vals function
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1244 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -3,3 +3,13 @@ function email_header($header) {
|
||||
// iconv_mime_encode requires PHP 5, imap_8bit requires IMAP extension
|
||||
return "=?UTF-8?B?" . base64_encode($header) . "?="; //! split long lines
|
||||
}
|
||||
|
||||
function get_key_vals($query) {
|
||||
global $connection;
|
||||
$return = array();
|
||||
$result = $connection->query($query);
|
||||
while ($row = $result->fetch_row()) {
|
||||
$return[$row[0]] = $row[1];
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user