From b37442334209a4d6729b44c8a5a5b494e388c54b Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 26 Dec 2023 23:01:04 -0500 Subject: show a total of 10 pages --- query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'query.php') diff --git a/query.php b/query.php index 41cc918..6aa8ee0 100644 --- a/query.php +++ b/query.php @@ -40,7 +40,7 @@ if ($page > 1) printf("<< < ", $_SERVER['REQUEST_URI'], $_SERVER['REQUEST_URI'], $page - 1); - for ($i = $page; $i <= ($res[1]["pages"] > $page + 10 ? $page + 10 : $res[1]["pages"]); $i++) + for ($i = $page; $i <= ($res[1]["pages"] > $page + 9 ? $page + 9 : $res[1]["pages"]); $i++) printf("%d ", $_SERVER['REQUEST_URI'], $i, $i); if ($page != $res[1]["pages"]) printf("> >> ", -- cgit v1.2.1