git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@728
7c3ca157-0c34-0410-bff1-
cbf682f78f5c
echo "</table>\n";
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) {
$max_page = floor(($found_rows - 1) / $limit);
echo lang('Page') . ":";