display image

Results 1 to 2 of 2

Thread: display image

  1. #1
    Join Date
    Dec 1969

    Default display image

    i have a table with a character field which stores the name of the image file. Only few records have the image. In the loop statement i have foloowing code<BR>&#060;%<BR>while not rs.eof<BR>if (rs("qtimg)="") then <BR> response.write("no image")<BR>else<BR>%&#062;<BR>&#060;img src="&#060;%=rs("qtimg")%&#062;"&#062;&#060;/img&#062;<BR>&#060;%end if%&#062;<BR><BR>the problem is it is displaying the image . but it does not satisfy the first condition . if the field is blank .. the image box is still displayed. any ideas ?<BR><BR><BR>brij <BR><BR>but <BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: display image

    instead of doing this check.<BR>(rs("qtimg)="") <BR><BR>Do this one<BR>if len(trim(rs("qtimg))) =0 then<BR><BR>Or you can try this one<BR>if isnull(rs("gtimg")) then<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts