Another question: Item display only if data present?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 15, 2009   (RSS)

Re: [Bassman] Another question: Item display only if data present?

By zip222 - March 15, 2009

This just requires some fairly simple php...

<?php if ($record['weight']): ?>
<p>Any html placed here would only be displayed if the "weight" field contains data. </p>
<p>If its blank, none of this will be displayed.</p>
<p>You can also include PHP, such as <?php echo ($record['weight']) ?></p>
<?php endif ?>

Re: [jdancisin] Another question: Item display only if data present?

By Bassman - March 15, 2009

Wow, thank you! Not only answered, but a solution!