Skip to main content
July 2, 2008
Question

Displaying an image & link if database has a value

  • July 2, 2008
  • 2 replies
  • 326 views
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
This topic has been closed for replies.

2 replies

Inspiring
July 2, 2008
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.
July 2, 2008
<CFIF Len(itemPDF) IS NOT 0>
<A HREF="something.pdf"><IMG SRC="myImage"></A>
</CFIF>