Limit number

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 6, 2010   (RSS)

By s2smedia - October 6, 2010

I need to limit just this section to show 4 records


<?php foreach ($service_listsRecords as $record): ?>
<?php if ($record['department'] != 'Interactive') { continue; } ?>
<tr>
<td width="11%" align="left" valign="middle" style="padding:10px 10px 10px 10px"><img src="images/layout2_r4_c2.png" width="7" height="7" /></td>
<td width="89%" align="left" valign="middle"><a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a></td>
</tr>
<?php endforeach ?>

How do I set that with out adding it to the header code..