Hey guys, I have a piece of code that enables me to show an image based on an id in the URL. My problem is, I want to show a default image if there is no ID given...Here is my code so far.
Code:<a href="index.php?id=orange">link</a>Hope I have explained myself properlyPHP Code:
<img src="http://www.website.co.uk/images/headers/<?php echo $_GET['id']; ?>_index.jpg" border="0">
Thanks in advance