1 Reply Latest reply on Sep 22, 2008 4:36 AM by Newsgroup_User

    Image Display

    Prellyan Luxtintner
      Hey there,

      I have an image returned recordset and am wondering how i can display a default image if there is not an image inserted into the database so i dont get the image place holder displaying when the recordset is null

      Thanks
        • 1. Re: Image Display
          Level 7
          <?php if(!empty($row_rsWhatever['imageField'])) { ?>
          <img src="<?ph echo $row_rsWhatever['imageField'] ?>">
          <?php } else { ?>
          <p>No Image</p>
          <?php } ?>

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "Prellyan Luxtintner" <webforumsuser@macromedia.com> wrote in message
          news:gb7t9j$k7b$1@forums.macromedia.com...
          > Hey there,
          >
          > I have an image returned recordset and am wondering how i can display a
          > default image if there is not an image inserted into the database so i
          > dont get
          > the image place holder displaying when the recordset is null
          >
          > Thanks
          >