Jump to content

pagination calculation


Michdd

Recommended Posts

I need something that will set $start = "0", $end = "25" if $page isn't set (default) like...

 

$page = $_REQUEST['page'];
if(!isset($page)){
$page = "1";
}

 

But then if page is set it must set things like this example:

 

if($page == "2"){
$start = "25";
$end = "50";
} elseif($page == "3"){
$start = "50";
$end = "75
}

 

And so on..

 

 

Link to comment
https://forums.phpfreaks.com/topic/131943-pagination-calculation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.