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; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.