navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Checking for pictures

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Checking for pictures
Page: [1]
 
Zordao

 

Posts: 1
Joined: 4/22/2003
Status: offline

 
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

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Zordao)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Checking for pictures
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts