User Profile

Collapse

Profile Sidebar

Collapse
Sensas
Sensas
Last Activity: Jun 2 '10, 12:35 PM
Joined: Jun 1 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sensas
    replied to exclude empty image fields mysql / php
    in PHP
    Perfect, Thanks for the quick answer!

    At this moment I solved it by:

    Code:
    <?php if(isset($listing_photo1) && $listing_photo1 != "") { ?><a href="<?php echo $listing_photo1; ?>" rel="lightbox[roadtrip]"><img src="<?php echo $listing_photo1; ?>" width="90" height="66" /></a><?php  } ?>
    ...
    See more | Go to post

    Leave a comment:


  • Sensas
    started a topic exclude empty image fields mysql / php
    in PHP

    exclude empty image fields mysql / php

    Sorry for this noob Huh question, but I am calling images from a database and I don't want to show the empty images.

    Example webpage here

    As you can see, there are 7 empty image fields left. How do I exclude empty fields in the code below

    Code:
    Code:
                 <a href="<?php echo $listing_photo1; ?>" rel="lightbox[roadtrip]"><img src="<?php echo $listing_photo1;
    ...
    See more | Go to post
No activity results to display
Show More
Working...