This is driving me crazy! How can I put an image on a page, then only have it show if a db query returns a specific value, but show nothing if the value dosent match? This is an example of what I was trying to do:
<?php if ($pdata = 'yes'?>
<img src="http://www.mypage.com/images/pic3.jpg width="64" height="64">
<?php } ?>
and it shows the pic alright if the $pdata = yes, but if it dosent = yes then it shows the broken image thing with the red x in it.