I have this array:
<?php
$arrFiles = array_diff(scandir("scans", 0), array(".", ".."));
$arrFiles = array_values($arrFiles);
?>
that prints fine with this:
<?php
print_r(array_values($arrFiles));
?>
and these buttons that I want to use to skip from one image to the prev or next:
<a href="javascript:skipLeft()"><img src="/ico/skip_left.gif" width="12" height="12" hspace="1" vspace="1" />skip left</a> /
<a href="javascript:skipRight()"><img src="/ico/skip_right.gif" width="12" height="12" hspace="1" vspace="1" />skip right</a>
I probably need some kind of loop, -1 and +1 or prev and next or something.
I've tried so many things. No luck.