ok, I have a variable 'id' which I'm passing through the URL. I then create a query to select the correct 'city_name' from the id passed. Then, I've created an image that has the same image name and I want it to show on the page. Here's the code
<?
$query = "SELECT city_name FROM city WHERE city.id ='" . $_GET['id'] . "'";
$results = mysql_query($query)
or die(mysql_error());
$cityname = mysql_fetch_array($results);
extract($cityname);
/* this is where I have the error. the picture is stored in the image folder. Is what I'm tring possible */
echo "<img src='" . images/$city_name.jpg . "'>";
?>