Check for last-record in list-viewer

2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 23, 2009   (RSS)

By avrom - January 23, 2009

Hi Dave,

I am sure there is a simple php function to test for the last record in a list-viewer.

I just want to check if a record is the last in a list-viewer. If it is I don't want to print the extra &8226; character in the menu line...

<?php foreach ($sub_galleriesMenus as $record): ?>
<a href="#"><?php echo $record['gallery_name'] ?></a> &#8226;
<?php endforeach ?>

Thanks in advance !!
Avrom