Hello and thanks for reading.
I am working on a simple IF statement. Basically, I want a link to appear if the "trailer" field in the "films" table only if that field contains a URL. If the field is NULL, then I don't want the link to show up at all.
This is what I have:
<?php if ($film['trailer'] > 0) { ?>
<a href="<?php echo $film['trailer']; ?>">
<img src="img/camera_icon.gif" alt="Watch Trailer" width="17" height="10" /> Watch Tailer</a>
<?php } ?>
As you can see here the link (should be right under the soldier thumbnail) is not showing up at all.
Can someone please help me. Again, thanks for your help.
-Lou