Show only SELECT result in 'Only errors' mode
This commit is contained in:
parent
3535d0a325
commit
6d0b86bffa
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue