Jump to content

Getting page start number


runnerjp

Recommended Posts

Ok guys i have a page where im echoing a count number in a loop...

$counter2= '1';

$counter2++;

 

How can i make it so on ach page of the pagination it adds 5 to the previous value??

 

so on each page it will start with these numbers.

page1  =  2, page 2  =  7 , page3  =  12, page4  =  17, page5  =  22, page6  =  27

 

To get the page number i use this

 

$pagenum                    =(is_numeric($pagenum) && $pagenum >= 1) ? (int)$pagenum : 1;

Link to comment
https://forums.phpfreaks.com/topic/195693-getting-page-start-number/
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.