diff options
author | Andrew Dolgov <[email protected]> | 2005-09-05 13:54:07 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-05 13:54:07 +0100 |
commit | cb1083a1f6e13222b173c72e0627907aa978fd5f (patch) | |
tree | ac9a422e5084b9357a6bec30829a1803eca8f15e /backend.php | |
parent | bb7cfaceb1f76bd6dba7d0687ee2e338fd61df5b (diff) |
limit number of loaded headlines
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 88d19641f..c25410d9a 100644 --- a/backend.php +++ b/backend.php @@ -249,6 +249,7 @@ $subop = $_GET["subop"]; $view_mode = $_GET["view"]; $addheader = $_GET["addheader"]; + $limit = $_GET["limit"]; if (!$skip) $skip = 0; @@ -338,6 +339,10 @@ if (!$addheader) { $limit_query_part = "LIMIT ".HEADLINES_PER_PAGE." OFFSET $skip"; + } else { + if ($limit != "All") { + $limit_query_part = "LIMIT " . $limit; + } } $result = pg_query("SELECT |