See my comments at my other reply to you.
Replace the latter half of your "galleryprint.pl" script with something like this:
I renamed the variables $first and $last to avoid the ambiguity of $bottom and $top I.e. It wasn't easy to tell whether you meant "bottom of page" or "bottom of range" (The bottom of the page would be the top of the range.) Whereas, $first is unambiguous because it is both the first image on the page and the first index in the range. Likewise with $last.my $page = url_param('page'); $page ||= 1; my $first = ($page - 1) * 20; my $last = $first + 19; print "<table>\n"; my $counter = 0; for ( (grep defined, reverse keys %upload)[ $first .. $last ] ) { my ( $filename, $width, $height ) = split ( /::/, $upload{$_} ); print " <tr>" unless ( $counter % 5 ); print qq(<td width=120" height="120">), qq(<a href="$imagedir/$filename" target="new">), qq(<img src="$imagedir/$filename" height="100" width="100">) +, qq(</a></td>); unless ( ++$counter % 5 ) { print "</tr>\n"; } } print "</table>";
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: mathematical equation
by sauoq
in thread mathematical equation
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |