mirror of
https://github.com/vrana/adminer.git
synced 2026-03-06 12:31:45 +01:00
$mysql->result takes always first row
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@116 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -37,7 +37,7 @@ if ($_POST) {
|
||||
$name = $_GET["db"];
|
||||
$collate = array();
|
||||
if (strlen($_GET["db"]) && ($result = $mysql->query("SHOW CREATE DATABASE " . idf_escape($_GET["db"])))) {
|
||||
if (preg_match('~ COLLATE ([^ ]+)~', $mysql->result($result, 0, 1), $match)) {
|
||||
if (preg_match('~ COLLATE ([^ ]+)~', $mysql->result($result, 1), $match)) {
|
||||
$collate = $match[1];
|
||||
}
|
||||
$result->free();
|
||||
|
||||
Reference in New Issue
Block a user