Ok, check this out.
I'm trying to wrap <?php ?> code inside of <?php ?>, I can't seem to get it to work. I'm sure I will, but if you can speed things up feel free
Here's what I'm doing. Now that everything is working awesome, and automated (thanks!!), my next goal is to get rid of the prev/first buttons if someone is on the first record 1001.jpg, and get rid of the next/last buttons if someone is on $newest.
Oooo, even better, leaving but disabling them. Can I do that? I'm sure I can. if nothing else just not <a> them..
Here are the lines:
<td width="14%" align="center"><div class="buttonwrapper"><a class="squarebutton" href="index.php?id=<?php if ($current < 1002) { echo ("1001"

;} else { echo ("{$prev}"

; } ?>"><span>Previous</span></a></div>
<br><br><div class="buttonwrapper"><a class="squarebutton" href="/index.php?id=1001"><span>First</span></a></div></td>
<td width="72%" align="center"><?php echo ("<img src=images/{$current}.jpg>"

; ?></img></td>
<td width="14%" align="center"><div class="buttonwrapper"><a class="squarebutton" href="index.php?id=<?php if ($current < $newest) { echo ("{$next}"

;} else { echo ("{$newest}"

; } ?>"><span>Next</span></a></div>
<br><br><div class="buttonwrapper"><a class="squarebutton" href="index.php?id=<?php echo ("{$newest}"

?>"><span>Last</span></a></div></td>
i've tried wrapping all current php code in each line in a <?php if ($current = 1001) blah blah ?> and <?php if ($current = newest) blah blah ?> but it doesn't seem to be taking.
I think I also tried (it was after midnight) wrapping and then removing the inside/current <?php ?>'s and echoing and stuff and I think I confused myself but I couldn't get it right.
-----signature-----
Every forum should have a Phases.
Bringing SSP back to life at
http://www.superstickphase.com !
Retired AC/AC2 - Phases Og'Maxim - Leafcull