getting info from a single record to display in a certain place

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

By jeffsaitz - January 28, 2015

Hello,

        Is there a way I can pick and choose which records to display in which part of my page?  I dont want to use a 'where' statement in my header because i want to load all records but only display certain ones.

so instead of using a foreach:

<?php foreach ($our_teamRecords as $record): ?>
Record Number: <?php echo htmlencode($record['num']) ?><br/>
Title: <?php echo htmlencode($record['title']) ?><br/>

I would like to say something like "if recordnum = 1, display title"

Jeff Saitz