|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: May 2006
Posts: 107
|
Displaying image questing
I'm creating a template on the auction site Vendio.
This is what I would use to insert an image when creating an template: PHP Code:
The problem I'm getting is that if there is no image url from vendio, lets say its the 2nd image and I only uploaded one. It displays a blank spot the size of the image were the code is and creates a gap. Is there anyway of not displaying an image gap or broken image if the url is not found? The 2nd, 3rd and 4th images have fixed widths to created a thumbnail. Here is a sreenshot of what I'm talking about IMG Thanks
__________________
Asus Maximus lll formula Mobo | i5 750 2.66 @ 3.4 | Corsair Hydro H50 | Patriot i5 Viper II 4GB PC12800 DDR3 | XFX Radeon HD 6870 | Ultra LSP750 750w | 750GB & 1TB WD Black Carver Drives | 3DMark06 20957 |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Try an if-statement to check to see if a path exists for the image. Then only write the HTML if it exists.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|