Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Whats wrong with this if?

Quote Reply
Whats wrong with this if?
I have the following in my detailed template:
<%if sims2%><img src="http://www.mydomain.com/gameicons/sims2.gif" alt="sims 2 required"><%end if%>

In my database there is a column named sims2 and on this particular record the entry for sims2 equal Yes, but the image doesnt show up, nor does it even show anything where I would expect this to show up (right after the title).

What do I hav to do to make something like this work.

Basically I have three entrys in the add form
sims2
university
nightlife
openforbusiness
And the user can choose either Yes by clicking on a radio button in the add form which adds Yes to the record for the proper column

Then I want to display in the detailed template that
if sims2 column equals yes then display this image.

Thanks,
Quote Reply
Re: [kamidan] Whats wrong with this if? In reply to
Try:
Code:
<%if sims2 eq 'Yes'%><img src="http://www.mydomain.com/gameicons/sims2.gif" alt="sims 2 required"><%endif%>