Sorry to do this, but I know the people who can answer this read this board, because they answered this once before in the comments under the column about Next/Prev buttons. Unfortunately, with the data loss, their hints and tricks are lost, and I'm hoping to draw them out to answer a few questions for me, as I just got to the stage to incorp the tips I saw them post. (No one seems to be going back into the older columns and reading for the most part, so I figured this was the best way to do this)
http://www.darke.net/~alex/test/index.phps is the full chunk of code, but I'll paste the two bits that aren't working here.
1) My PREV button doesn't work at all. Pretty hosed in fact. I know I'm not the only one that encountered that, just the only one unlucky enough to get to the point to try and fix it AFTER the dataloss here :o)
if ($offset==0) { // bypass PREV link if offset is 0
$prevoffset=$offset-5;
print "<a href=\"$PHP_SELFoffset=$prevoffset\">PREV</a> \n";
}
is it something specific to this segment of code? It appears on the very first page, but not on any other subsequent ones, and it doesn't do what it's supposed to do anyway :o)
2) Someone had posted a modification to the following snippet of code
for ($i=1;$i<=$pages;$i++) {
$newoffset=$limit*($i-1);
print "<a href=\"$PHP_SELFoffset=$newoffset\">$i</a> \n";
}
that made it so that $i was unlinked if it was the current page being viewed. Again, I saw the hint, thought to myself "I'll come back and review that when I get there" only to have it be gone now. Any help?