Reflex
01-27-2005, 09:09 AM
Here is a line from my .php file:
echo " ".$row['picFile'].": ".$row['caption']."<br><br>";
The picFile will be something like myPicture.gif and relative to the .php it will be located at images/myPicture.gif
So how do I convert the above .php script so that it will display the image like the following html would:
<img src="images/myPicture.gif">
Maybe something like (which doesn't work but might show clearer what I am trying to do):
echo " <img src=\"images\"+".$row['picFile'].": ".$row['caption']."<br><br>";
Thanks,
Stephen.
echo " ".$row['picFile'].": ".$row['caption']."<br><br>";
The picFile will be something like myPicture.gif and relative to the .php it will be located at images/myPicture.gif
So how do I convert the above .php script so that it will display the image like the following html would:
<img src="images/myPicture.gif">
Maybe something like (which doesn't work but might show clearer what I am trying to do):
echo " <img src=\"images\"+".$row['picFile'].": ".$row['caption']."<br><br>";
Thanks,
Stephen.