tippytarka
Programmer
i'm trying to create a img src tag around a variable.. for example...
$target_path_2 is a path to an image file in a directory ... photos/test.jpg
this gets entered into my database, when recalling the path from my database i'm trying to put an image tag around it and put into a new variable like so...
after trying various ways i'm stumped on how to do it.. can anyone help?
cheers
$target_path_2 is a path to an image file in a directory ... photos/test.jpg
this gets entered into my database, when recalling the path from my database i'm trying to put an image tag around it and put into a new variable like so...
Code:
$path= '<img src"'.$target_path_2.'">';
after trying various ways i'm stumped on how to do it.. can anyone help?
cheers