I use the following code to insert images into a variable that is then displayed on a web page. I am also storing a caption for the photo. When the text is input I use [pic1] as the placeholder for the photo.
I am using align="left" to insert the photo because I don't want a complicated table structure but I can't come up with a scheme to reliably insert the caption under the photo, which can be of a varying size, without using tables.
Any ideas?
(I have simplified this code to its basic functions)
$img1="<img src='$n_image1' align=\"left\">";
if(strlen($n_image1)>0)
{
$n_article=str_replace('[pic1]',$img1,$n_article);
}
echo"</center><font size='2' face='Arial'><b>$n_article</b><br>";
I appreciate your help.
Brian Irwin