Forums

This topic is locked

hiding gif

Posted 07 Aug 2002 22:05:20
1
has voted
07 Aug 2002 22:05:20 Dave Clarke posted:
I am trying to have a gif not show if a field of the database is empty, this is what i have

<% if Recordset2.Fields.Item("YourEmailAddress".Value <>"" {%><img name="emailbut" border="0" src="graphics/emailbut_r2_c2.gif" width="108" height="28"><%}%></a>

but it doesn't work, any ideas??

Replies

Replied 07 Aug 2002 22:43:53
07 Aug 2002 22:43:53 Dave Thomas replied:
It's a pure pain that i cant paste code in here.

Ive emailed u the answer m8

"Get the kettle on, time for a brew"
Replied 08 Aug 2002 07:58:30
08 Aug 2002 07:58:30 Dave Clarke replied:
thanks Dave, will check it out.

Dave
Replied 08 Aug 2002 08:30:28
08 Aug 2002 08:30:28 Dave Clarke replied:
Done it <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

&lt;% if (Recordset2.Fields.Item("YourEMailAddress".Value &lt;&gt; "" { // hide gif %&gt;
&lt;img name="emailbut" border="0" src="graphics/emailbut_r2_c2.gif" width="108" height="28"&gt;
&lt;% } // hide gif %&gt;

Reply to this topic