i didn't read through the rest of the code past this part:
Quote:
if (isset($_GET['page'])) {
// Get Current page from URL
$page = $_GET['page'];
}
if ($page <= 0) {
// Page is less than 0 then set it to 1
$page = 1;
} else {
// URL does not show the page set it to 1
$page = 1;
}
|
that's gonna set $page to "1" no matter what. so even if $page = 2 on the if clause before it, it gets set back to one
Quote:
if (isset($_GET['page'])) {
// Get Current page from URL
$page = $_GET['page'];
}
if ($page <= 0 || $page == '' || is_null($page)) {
// Page is less than or equal to 0, or isn't set, so set it to 1
$page = 1;
}
|