Display image with value
Posted: Sun Jan 23, 2011 7:39 pm
Hi all
Had setup a dynamic table query displaying all my fields correctly...
one of the fields is:
<td bgcolor="#CCCCCC"><?php echo $row_rsParts['PB']; ?></td>
the values of the column field 'PB' is either yes or no.
how do i make it display 'yes.gif' if the value is yes and 'spacer.gif' if the value is no.
Would appreciate if fellow friends could help me out and give me some pointers. Many thanks.
Had setup a dynamic table query displaying all my fields correctly...
one of the fields is:
<td bgcolor="#CCCCCC"><?php echo $row_rsParts['PB']; ?></td>
the values of the column field 'PB' is either yes or no.
how do i make it display 'yes.gif' if the value is yes and 'spacer.gif' if the value is no.
Would appreciate if fellow friends could help me out and give me some pointers. Many thanks.