Hey, I am created a php page where I print info from a database using <td><?=$mf['receivep']?></td> I would like it that if receivep = y it will show a tick if it = n it will display a image of a x. How do I do that. Rgds Daniel
<td><? if ($mf['receivep'] == "n") { echo '<img src="image_x.png">'; } else { echo '<img src="image_y.png">'; } ?></td> PHP: In this case the it will show the image_x.png if it is "n" otherwise it will show the image_y.png
Hey guy,Try this: <td> <?php if($mf['receivep'] == 'y') { ?> <img src="The image url what you want to show."> <?php }else{ ?> <img src="The image url what you want to show."> <?php } ?> </td>