Comment
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@728 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
00ffa4e977
commit
5d311ef2d9
|
@ -287,7 +287,10 @@ if (!$columns) {
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
|
||||||
echo "<p>";
|
echo "<p>";
|
||||||
$found_rows = (intval($limit) ? $dbh->result($dbh->query(count($group) < count($select) ? " SELECT FOUND_ROWS()" : "SELECT COUNT(*) FROM " . idf_escape($_GET["select"]) . ($where ? " WHERE " . implode(" AND ", $where) : ""))) : $result->num_rows);
|
$found_rows = (intval($limit) ? $dbh->result($dbh->query(count($group) < count($select)
|
||||||
|
? " SELECT FOUND_ROWS()" // space to allow mysql.trace_mode
|
||||||
|
: "SELECT COUNT(*) FROM " . idf_escape($_GET["select"]) . ($where ? " WHERE " . implode(" AND ", $where) : "")
|
||||||
|
)) : $result->num_rows);
|
||||||
if (intval($limit) && $found_rows > $limit) {
|
if (intval($limit) && $found_rows > $limit) {
|
||||||
$max_page = floor(($found_rows - 1) / $limit);
|
$max_page = floor(($found_rows - 1) / $limit);
|
||||||
echo lang('Page') . ":";
|
echo lang('Page') . ":";
|
||||||
|
|
Loading…
Reference in a new issue