runnerjp Posted March 18, 2010 Share Posted March 18, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.