View Single Post
  #7 (permalink)  
Old May 17th, 2005, 01:37 AM
tdaustin tdaustin is offline
Authorized User
Join Date: Jun 2003
Location: Melbourne, Victoria, Australia.
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tdaustin Send a message via Yahoo to tdaustin

Just write a control structure to handle no image

' Check the length of the image
If Len(objRS("product_image") > 0 Then
' we have an image and run code for displaying image
<img src="images/<%= objRS("product_image") %>" width="x" height="x">
' no image so display image placeholder or non at all
<img src="images/noimage.gif" width="x" height="x">
<% End If %>

Reply With Quote