mirror of
https://github.com/vrana/adminer.git
synced 2026-01-15 20:13:11 +01:00
$target uses $row
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@171 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -35,8 +35,6 @@ while ($row = $result->fetch_assoc()) {
|
||||
}
|
||||
}
|
||||
$result->free();
|
||||
$source = get_vals("SHOW COLUMNS FROM " . idf_escape($_GET["foreign"])); //! no text and blob
|
||||
$target = ($_GET["foreign"] === $row["table"] ? $source : get_vals("SHOW COLUMNS FROM " . idf_escape($row["table"])));
|
||||
|
||||
if ($_POST) {
|
||||
$row = $_POST;
|
||||
@@ -54,6 +52,9 @@ if ($_POST) {
|
||||
} else {
|
||||
$row = array("table" => $_GET["foreign"], "source" => array(""));
|
||||
}
|
||||
|
||||
$source = get_vals("SHOW COLUMNS FROM " . idf_escape($_GET["foreign"])); //! no text and blob
|
||||
$target = ($_GET["foreign"] === $row["table"] ? $source : get_vals("SHOW COLUMNS FROM " . idf_escape($row["table"])));
|
||||
?>
|
||||
<form action="" method="post">
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user