mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 01:54:00 +02:00
Show only SELECT result in 'Only errors' mode
This commit is contained in:
@@ -110,11 +110,8 @@ if (!$error && $_POST) {
|
|||||||
echo "<p class='message' title='" . h($connection->info) . "'>" . lang('Query executed OK, %d row(s) affected.', $connection->affected_rows) . "$time\n";
|
echo "<p class='message' title='" . h($connection->info) . "'>" . lang('Query executed OK, %d row(s) affected.', $connection->affected_rows) . "$time\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($_POST["only_errors"]) {
|
|
||||||
echo $print;
|
|
||||||
$print = "";
|
|
||||||
}
|
|
||||||
select($result, $connection2);
|
select($result, $connection2);
|
||||||
|
if (!$_POST["only_errors"]) {
|
||||||
echo "<form action='' method='post'>\n";
|
echo "<form action='' method='post'>\n";
|
||||||
echo "<p>" . ($result->num_rows ? lang('%d row(s)', $result->num_rows) : "") . $time;
|
echo "<p>" . ($result->num_rows ? lang('%d row(s)', $result->num_rows) : "") . $time;
|
||||||
$id = "export-$commands";
|
$id = "export-$commands";
|
||||||
@@ -135,6 +132,7 @@ if (!$error && $_POST) {
|
|||||||
}
|
}
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$start = $end;
|
$start = $end;
|
||||||
} while ($connection->next_result());
|
} while ($connection->next_result());
|
||||||
} elseif ($connection->error) {
|
} elseif ($connection->error) {
|
||||||
|
Reference in New Issue
Block a user