View Single Post
Old 10-23-2021, 10:45 AM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,071
Quote:
for ($x = ($currentpage - $range); $x < (($currentpage + $range) + 1); $x++)
You have range set to 2. So lets say current page is 3.

Your loop will go

currentpage - range = 1

to

currentpage + range + 1=6

So you will be putting up links to pages 4, 5 and 6 that do not exist.

Not going to tell you how to fix it. This one is an easy one.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote