I need to display and image with a link if my ItemPDF cell has a valve, but
display nothing if there is no value, how do i go about doing this?
The value is likely to be "something.pdf"
Cheers,
Lee
jdeline - 02 Jul 2008 16:55 GMT
<CFIF Len(itemPDF) IS NOT 0>
<A HREF="something.pdf"><IMG SRC="myImage"></A>
</CFIF>
JR "Bob" Dobbs - 02 Jul 2008 16:59 GMT
I assume that your are using cfoutput to loop through the results of a query to
be displayed.
Posting a more detailed question and any code you have already tried might
help us in answering your post.
See attached code.
<!--- assumes a cfquery object "myquery" and a column "link_value" that is
empty when there is no link to be displayed --->
<cfoutput query="myquery">
<cfif myquery.link_value neq ""><a
href="#myquery.link_value#">#myquery.link_value#</a></cfif>
</cfoutput>