I am trying tomimic this functionality:
<?php if($listing['bedrooms']) : ?><b>Bedrooms:</b> <?php echo $listing['bedrooms'] ?><br/> <?php endif; ?>
that is on a working site but I do not have the variable defined yet. I have a program that generates tags like this: {bedrooms}
so I am seeking to match IF bedrooms=3 (for example) then display 3bed.jpg
this is what I was trying but it failed miserably:
<?php $name = {name}; if($name == "joe") : ?><img src="joe.jpg"><?php endif; ?>
hopefully you can follow my wayward logic.
Thanks











