The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

Image display query

As a relative newbie to all this website design, this may be a basic query for some of you.

I have a MYSQL database that holds various details including logos from some of our partners. One or two of these lines however do not have a logo file contained in the database. When these lines are displayed on the webpage then in Firefox everything appears to be ok, however, in IE this is not the case, where the text field in the database is blank then IE displays a placeholder, not what is required.

Anyone got ways of dealing with this, or is it just yet another IE bug.

is this actually the logo (in a BLOB field)? or is it just a URL to a logo?

sounds like you're using a URL.

if so this is not a problem with mysql, but with your webpage. if there is no URL displayed, then your application either needs to not display the image tag or provide an alternate default image URL.

Longneck, thanks for the response, i agree, the problem is not with MySql, which is why i had posted this in the graphics section, but someone kindly moved it here.

You are right, the database contains the relative url, it is only if this filed is blank that the problems occurs, i have currently solved it by linking to a spacer image, rather than leaving it blank.