<?php
// Simple test script to verify pagination functionality
echo "Pagination Test Script\n";
echo "=====================\n";

// Simulate pagination parameters
$page = isset($_GET['page']) ? (int)$_GET['page'] : 1;
$limit = isset($_GET['limit']) ? (int)$_GET['limit'] : 10;
$offset = ($page - 1) * $limit;

echo "Page: $page\n";
echo "Limit: $limit\n";
echo "Offset: $offset\n";

// Test URL building
$params = $_GET;
$params['page'] = 1;
echo "First page URL: ?" . http_build_query($params) . "\n";

$params['page'] = $page + 1;
echo "Next page URL: ?" . http_build_query($params) . "\n";

echo "\nPagination would show:\n";
echo "Page $page of approximately " . ceil(2374 / $limit) . " pages\n";
?>