If statement

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 13, 2016   (RSS)

By Damon - May 13, 2016

HI,

It looks like some of your code is missing. Is it suppose to be like this:

Model produced by <?php echo $listing['manufacture'] ?> for </i> <b><?php echo $listing['produced_for'] ?><b/></li>

I'm not sure what variable you want to check for in the IF statement but here is an example if you have a field called product :

<?php if($listing['product']) : ?>
Model produced by <?php echo $listing['manufacture'] ?> for </i> <b><?php echo $listing['produced_for'] ?><b/></li>
<?php endif; ?>

Does this help?

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By tCote - May 13, 2016 - edited: May 13, 2016

Thank you. I did the same thing and had product listed in stead of produced_for as that is the field I wanted displayed. Got it working fine.

Thanks once again.