Checking for pictures (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


Zordao -> Checking for pictures (4/22/2003 18:15:16)

I have figured out how to make the database and add pictures, but I have run into a problem. This is the situation, my database has five spots for filling in the location of the picture. Then on the web page I place five images and change the parameters so that they match the five fields in my database. What I wonder is there a way to make some of those picture boxes not appear if there is no picture path in the database field. Otherwise you just get the picture box with the " x" in it.
Any Help?

- Zordoa




Spooky -> RE: Checking for pictures (4/22/2003 20:57:25)

Basically you want to do a comparison in vbscript

<%If [picture] &" "  <> " "  then%>
<img src=" <% =[picture] %>"  >
<%End if%>


Where [picture] is the code you currently use to display the image




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875