Originally posted by code green
Paging Problems
Collapse
X
-
Your test is askingCode:If pagenum is NOT empty, set pagenum to 1
Code:If pagenum IS empty, set pagenum to 1
Comment
-
Originally posted by code greenYour test is askingCode:If pagenum is NOT empty, set pagenum to 1
Code:If pagenum IS empty, set pagenum to 1
Comment
-
22? I assume these are the offending lines. [PHP]$next = $pagenum+1;
echo " <a href='{$_SERVER['PHP_SELF']}?pagenum=$next '>Next -></a> ";[/PHP] Then pagenum must be 21.
You haven't changed the hyperlink string to how I suggested.
It's probably OK it is just not the way I write them.
When using mathematical operators always ensure all variables are initialised.
If not they may contain spurious data.
This may not be the problem.
I cannot spot the problem so I suggest echoing out the variables throughout to see where their values are changingComment
Comment