Dreaded red x
Is there a simple bit of code for php or one of the behaviors that will show image if fileld isn't empty instead of the dreaded red X, all I can find is show if recordset is'nt empty.
Thanks!
Tracy
 
 
     3/21/2012 12:32 pm  |  #1 newimage96814918
3/21/2012 12:32 pm  |  #1 newimage96814918  Is there a simple bit of code for php or one of the behaviors that will show image if fileld isn't empty instead of the dreaded red X, all I can find is show if recordset is'nt empty.
Thanks!
Tracy
 3/21/2012 12:36 pm  |  #2 Jason ByrnesWebAssist
3/21/2012 12:36 pm  |  #2 Jason ByrnesWebAssist
        use an if statement around the image tag:
<?php if($row_recordsetName["ImageColumnName"] != "") { ?>
<img  src="path/to/images/<?php echo ($row_recordsetName["ImageColumnName"] ?>" /?>
<?php } ?> 3/21/2012 3:55 pm  |  #3 newimage96814918
3/21/2012 3:55 pm  |  #3 newimage96814918  Perfect as usual, Thanks Jason!
Tracy
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.