Re: [willydoit] Can I display only positive result content?
Hi willydoit,
You can accomplish this with an IF block. For example, if your fields are "checkbox fields" and you are starting with this code in your page:
Central Heating - <?php echo $record['central_heating'] ?><br />
You can change that to this:
<?php if ($record['central_heating']): ?>
Central Heating - Yes<br />
<?php endif ?>
That HTML in the second line will only appear if your field is checked. You can add whatever HTML you want for that second line, such as an image. You'll need to make sure you get your field names (in red, above) correct.
If you're using "list fields" instead of checkboxes, please let me know and I'll show you some code for those.
I hope this helps! Please let me know if you have any questions.
All the best,
Chris