I'm not sure, but i think that i could not use the code you gave me, because the structure of my code is already set to show all the image fields, and if i put a default image, it will link to a blank image (i'm using lightbox to enlarge the images).
I just don't finde a way to hide that image if it doesn't exist in the database :s
The code:
<a href="<?php echo $row_motos['img1']; ?>" rel="lightbox"><img src="<?php echo $row_motos['img1']; ?>" width="250" height="187" border="0" /></a> <a href="<?php echo $row_motos['img2']; ?>" rel="lightbox"><img src="<?php echo $row_motos['img2']; ?>" width="250" height="187" border="0" /></a>
The problem is when the img2 field is blank should not appear anything, in firefox works fine, but in IE shows that image :S
Hi everyone!!
I'm developing a website in php/mysql.
The database have 4 image fields, but in some cases i just use 2 or 3, the other image fields are empty.
The page where i show the rows os the database was developed with the 4 fields in it.
In firefox everything is allright, but in IE the empty image fields are shown as the image below.
Can anyone help me to solve this problem?
[attachment deleted by admin]
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.