Hi all,
I store a path to an image in a variable as such:
$imageref = "images/image1.jpg";
And I then echo this to the screen within IMG SRC tags as such:
<img src="$image">
What I would like is to be able to take the 'image1' part of the string and use that as the ALT tage for the img src above.
Can anyone explain how this is done please?
I can't hard code my alt tag because I retrieve the string from a database and therefore it is a different image everytime.
Many Thanks (in advance)
K.