Adding images directory to PHP echo statement
Hi
I'm developing a website where images are displayed by pulling down the image details (e.g. picture.jpg) from a field in a MySql database. This works fine although the image has to be located in the root directory of the website.I wish to move the 'picture.jpg' to the images/ directory so that I don't have images in the root directory (best practice) but would like to know if there is a way of modifying the PHP statement I'm using:
<?php echo $row_Recordset1['Picture']; ?>
so that it 'points' to the 'images' sub-directory? I know that a workaround would be to modify the MySql field entry to show images/picture.jpg rather than simply picture.jpg, but I wondered if there was a way of using PHP to do the work instead?
Really appreciate any help on this one.
Many thanks...Tony
