Newbie question.
I have a database for displaying the names of bed and breakfasts
searched for by the town they are in as below.
<?php
$result = @mysql_query ("SELECT name FROM site01_details WHERE
town='$townsearch' AND code='sleep'");
while ($row = mysql_fetch_array($result))
{ echo '<p>' . $row['name'] . '</p>'; }
?>
I want to also insert an image (of the premises for example) for each
bed and breakfast found.
Assuming a code in each database entry is actually the exact image
name, and all are stored in /images, and all of JPG format and fixed
size, how can I insert the image for each search result found.
Many thanks
Alec