Filter Out certain record from list

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

By (Deleted User) - January 13, 2011

Hello,

I know this is probably going to be really easy. I have a list using:

list($guided_tourRecords, $guided_tourMetaData) = getRecords(array(
'tableName' => 'guided_tour',
'orderBy' => 'tour_start_date ASC',));?>


In the header and:
<label>
<select name="fields_guidedtour">
<option>Not Selected</option>
<?php foreach ($guided_tourRecords as $record): ?>
<option><?php echo $record['title'] ?> - <?php echo date("M jS, Y", strtotime($record['tour_start_date'])) ?> to <?php echo date("M jS, Y", strtotime($record['tour_end_date'])) ?></option>
<?php if (!$record['ftour_avail']): ?><?php else: ?>
<option><?php echo $record['title'] ?> - <?php echo date("M jS, Y", strtotime($record['ftour_start_date'])) ?> to <?php echo date("M jS, Y", strtotime($record['ftour_end_date'])) ?></option>
<?php endif ?><?php endforeach; ?>
</select>
</label>


To display a drop down list of the guided_tourRecords.

How can i eliminate one tour from this list? Lets say record number 37?

Thanks Jono