Jump to content

mbodamer

New Members
  • Posts

    2
  • Joined

  • Last visited

mbodamer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well like I said... {name} is a tag that is generated from a program that I can simply put on the HMTL page anywhere and it will print the value of {name}. So I need a way to see what that value is, and then if it matches what I want, print something if not ignore it. if I just put {name} on the page it will print "joe" for example.
  2. Hi, 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.