I'm having problems with putting an image - outofstock.gif into a table cell but only if prod_status == 'Sold'
An empty image place holder shows - but without the actual image in it.
Ideally I also wanted this whole table column to be a background to another table cell (and not in a separate column) but couldn't get that to work either.
I know something like <td background='image/outofstock' but couldn't get the if statement to work within the background setting?
<td align="center"><img src="<?php if ($row_rs_dresses['prod_status'] == "Sold") $src = 'images/outofstock.gif'; else echo 'images/dot.gif'?>" width="40" height="40" /></td>
Any ideas would be great :-)