loz
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by loz
-
-
Hi,
Thanks for that, I cannot get the sytax right.
The repeating ul code looks like this:
[size=8pt] [color=green]<ul>
<?php
$counter = 0;
do { ?>
<li><div><?php echo $row_rsGetImages['img_description']; ?></div><a href="galleries/<?php echo $row_rsGetImages['gallery_folder']; ?>/fullsize/<?php echo getFullName($row_rsGetImages['img_filename']); ?>"><img src="galleries/<?php echo $row_rsGetImages['gallery_folder']; ?>/thumbs/<?php echo $imgThumb = getThumbName($row_rsGetImages['img_filename']); ?>" alt="" width="60" height="60" title="<?php echo $row_rsGetImages['img_caption']; ?>" <?php echo picSize("galleries/".$row_rsGetImages['gallery_folder']."/thumbs/".$imgThumb); ?>></a> </li>
<?php
$counter++;
if($counter % 4 == 0)
{
echo "</ul><ul>";
}
} while ($row_rsGetImages = mysql_fetch_assoc($rsGetImages)); ?>
</ul>[/color][/size]
Any more help really appreciated :)
cheers
loz -
In a galley I am working on there is a counter that sets the number of
images wanted in the row and
when that number is exceeded creates a new row of thumbnails:
http://www.justict.co.uk/galleries.php
<ul>
<?php
$counter = 0;
do { ?>
<li> thumbnail images here</li>
<?php
$counter++;
if($counter % 4 == 0)
{
echo "</ul><ul>";
That works fine unless the number of images is 4, 8, 12, etc and then there
is an extra blank row shown.
any help appreciated
loz
php counter
in PHP Coding Help
Posted
The gallery throws a javascript error and the empty row remains.
Appreciate the time you have spent on this but will have to try something different
cheers
loz