2 Replies Latest reply on Oct 16, 2008 4:29 AM by meesonator

    if field is empty

      How do you hide an element based on whether a field of a record is empty, i have the following code

      <?php if ($totalRows_rsProject1['Image1'] > 0) { ?>
      <img src="<?php echo $row_rsProfile['Image1']; ?>" alt="image7" class="Dynamic_Image" />
      <?php } ?>

      even when there is an image path in the field the image is still hidden, I have used a similar thing based on whether a recordset is empty which works, but it dosn't when i specify a field