I have searched the forum for this answer but no joy, so I hope someone can help me.
I want to use php to display an image and have the image url stored in my database, but the code I'm using simply displays the text content of the field ie the image url and not the image itself.
Can anyone show me where I have gone wrong, thanks.
CODE USING
<?php
mysql_connect("", "", "") or die(mysql_error());
mysql_select_db("") or die(mysql_error());
$data = mysql_query("SELECT * FROM pt_publications")
or die(mysql_error());
Print "<table>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "<th></th> <td>".$info['cover_url'] . "</td> ";
}
Print "</table>";
?>