<?php
$showMin = 0;
while(!$ChildrenPanel->atEnd() || ($showMin > 0 && $showMin < 4)) {
$showMin++;
if (ChildrenPanel->atEnd()) $ChildrenPanel->moveFirst();
?>
<a href="pottery/childrens-parties" class="responsive-picture homepagePanel">
<picture><img alt="" src="./images/gallery_c/<?php echo($ChildrenPanel->getColumnVal("GalleryImage")); ?>" width="231" height="306"></picture>
</a>
<?php
$ChildrenPanel->moveNext();
}
$ChildrenPanel->moveFirst(); //return RS to first record
?>