jk2010 Posted January 4, 2010 Share Posted January 4, 2010 hi, i've got a query where i loop the page number as <?php $page = $page++ //result $page = 1 ?> How can i go to loop page 10 instead of page 1 and so on? cheers. Link to comment https://forums.phpfreaks.com/topic/187101-jumping-to-page-102030-instead-of-123/ Share on other sites More sharing options...
jl5501 Posted January 4, 2010 Share Posted January 4, 2010 If you just wish to advance by 10 pages instead of 1, you can use $page+=10; instead of $page++; John Link to comment https://forums.phpfreaks.com/topic/187101-jumping-to-page-102030-instead-of-123/#findComment-988079 Share on other sites More sharing options...
jk2010 Posted January 4, 2010 Author Share Posted January 4, 2010 sweet... I had tried $page+10 but didn't put = sign. Sorted, many thanks. Link to comment https://forums.phpfreaks.com/topic/187101-jumping-to-page-102030-instead-of-123/#findComment-988084 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.