hello i am trying to display an image from a database which has just been uploaded by the user. when they go onto the next page the image should be displayed here.
I have been able to get it to display the path for the image that haas been stored using this code
$sql= "SELECT * FROM images_broad"; $query = mysql_query($sql); $result = mysql_fetch_array($query) or die (mysql_error()); echo $result ['broad1'];
but when i try to use the img tag it displays nothing.
the path has been stored in the mysql table images_broad in broad1 and the path is stored in a variable called $newname2.
when the image is meant to be displayed the source code has then img tag as empty. I no it is going to be something silly stopping it from working but it would be nice if someone could show me why this is not working.