If Selected then Show Image

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

Re: [jposwald] If Selected then Show Image

By Dave - March 13, 2009

Hi Juan,

First, display the value of the promotion field, I'll pretend it's called 'promotion' but your field might be called something else (and they are CaSe SeNsItIvE, so case matters).

'<?php echo $record['promotion']; ?>'

Say that displays 'Yes', copy that exact value into this code:

<?php if ($record['promotion'] == 'Yes'): ?>
... html you want to display here ...
<?php endif ?>


Hope that helps! Let me know how that works for you.
Dave Edis - Senior Developer
interactivetools.com