HighDots Forums  

Image Display

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Image Display in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Prellyan Luxtintner
 
Posts: n/a

Default Image Display - 09-22-2008 , 06:50 AM






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


Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Image Display - 09-22-2008 , 07:36 AM






<?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 (AT) macromedia (DOT) com> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.