<p align="center" class="style1"><?php if
($row_participant_details['image4']!='') { ?>
<img src="images/variable/<?php echo
$row_participant_details['image4']; ?>"
alt="<?php echo
$row_participant_details['image4 text']; ?>"><?php }
?></p>
or you could do this -
<p align="center" class="style1"><?php
echo($row_participant_details['image4']!=''?'<img
src="images/variable/'.$row_participant_details['image4'].'"
alt="'.$row_participant_details['image4 text'].'">':'' );
?></p>
The former may be a bit easier to follow. Pay attention to
the single and
double quotes in the latter.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"GrahamMercer" <webforumsuser@macromedia.com> wrote in
message
news:edvm8r$s7o$1@forums.macromedia.com...
> Hi Murray, thanks for the quick response. Unfortunately
due to my lack of
> skill
> with PHP

I am not exactly sure how to implement your
> suggestion. Any chance you could expand a little on your
answer please?
> You said
>
> <?php if(imagefield!='') { echo"<img
src='imagefield'>"; } ?>
>
> so how would I incorporate that into the example code
below please so that
> the
> browser doesn't show an image placeholder if there is no
image to display?
>
> <p align="center" class="style1"><img
src="images/variable/<?php echo
> $row_participant_details['image4']; ?>" alt="<?php
echo
> $row_participant_details['image4 text'];
?>"></p>
>
> Thanks again for your help,
> Graham
>