Gossamer Forum
Home : Products : DBMan SQL : Discussion :

If ne '' problem

Quote Reply
If ne '' problem

I have a database with a field ImageURL (varchar255).

what I'm trying to do is to display a text if there is no url stored in this field:

<%loop results%>

<%if ImageURL ne ''%>

<A HREF="<%ProduktURL%>" TARGET="_blank"><img src="<%ImageURL%>" WIDTH="60" HEIGHT="60" BORDER="0"></A>


<FONT SIZE="1">No Picture</FONT>



My problem is that I even get an empty IMG-tag (IMG SRC="") when there is no ImageURL instead of the "No Picture"-text.

What am I doing wrong?????


Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
Subject Author Views Date
Thread If ne '' problem ManuGermany 2097 Dec 27, 2002, 7:09 AM
Post Re: [ManuGermany] If ne '' problem
jaspercram 2041 Dec 27, 2002, 7:27 AM