i have created this piece of code to retrieve the path to a file from a mysql db, the file exists and can be displayed directly from the sql query. the code looks like this
$query = "SELECT broad1 FROM images_broad";
$result=mysql_query($query);
while($row=mysql_fetch_array($result)){
$image_path="{$row['broad1']}";
}
i now want to display this image inside an email. so the next part of the code use a variable to hold the first part of the path as only the relative path is stored in the db. they are the appended together to give the absolute path of the image to be displayed. the code looks like this
$path= 'http://www.acmeart.co.uk/mercury';
$broad_img1='<img src="' . $path."/".$image_path .'" />';
when the source code of the email is viewed on the $path is showing in the source, would the $image_path still hold a value inside.