mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Print number of rows in SQL command
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@965 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -48,9 +48,13 @@ if (!$error && $_POST) {
|
||||
}
|
||||
} else {
|
||||
$end = explode(" ", microtime());
|
||||
echo "<p class='time'>" . lang('%.3f s', max(0, $end[0] - $start[0] + $end[1] - $start[1])) . "\n";
|
||||
$i = 0;
|
||||
do {
|
||||
$result = $dbh->store_result();
|
||||
if (!$i) {
|
||||
echo "<p class='time'>" . (is_object($result) ? lang('%d row(s)', $result->num_rows) . ", ": "") . lang('%.3f s', max(0, $end[0] - $start[0] + $end[1] - $start[1])) . "\n";
|
||||
$i++;
|
||||
}
|
||||
if (is_object($result)) {
|
||||
select($result, $dbh2);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user