Show Records Individually

3 posts by 3 authors in: Forums > CMS Builder
Last Post: March 1, 2021   (RSS)

By mizrahi - February 9, 2021

I think this is what you're looking for:

<?php foreach ($services as $record): ?>
	<?php if($record['title'] != "Mowing") continue; ?>
	<h1><?php echo $record['title']; ?></h1>
	<?php echo $record['content']; ?>
<?php endforeach ?>


<?php foreach ($services as $record): ?>
	<?php if($record['title'] != "Landscaping") continue; ?>
	<h1><?php echo $record['title']; ?></h1>
	<?php echo $record['content']; ?>
<?php endforeach ?>


<?php foreach ($services as $record): ?>
	<?php if($record['title'] != "Excavating") continue; ?>
	<h1><?php echo $record['title']; ?></h1>
	<?php echo $record['content']; ?>
<?php endforeach ?>

By Jenna - March 1, 2021

Hi Phil,

Did mizrahi's reply help you achieve your desired result? Please let us know.

Jenna

Jenna Cooke - PHP Programmer
interactivetools.com