Insert "no_image.gif" when no image is uploaded

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 3, 2008   (RSS)

Re: [kovali] Insert "no_image.gif" when no image is uploaded

By Dave - October 2, 2008

Hi Kovali, Welcome to the CMS Builder forum!

Just add this after the <?php endforeach ?>

<?php if (!$record['foto']): ?>
Sorry, no images. <img ... your tag here ... />
<?php endif ?>

The ! means "not" as in "not images" or "no images".

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Insert "no_image.gif" when no image is uploaded

By kovali - October 3, 2008

Great! Thx