Hello I am new to this forum and would greatly appreciate any help. I am trying to display a BLOB from my database onto a webpage, but I have no clue how to do this. My current code displays the name of the BLOB, not the BLOB itself. Here is the code:
<html>
<?php
$con = mysql_connect("mysql17.000webhost.com","a2870045_r ayman3","hawaii" );
mysql_select_db("a2870045_picture", $con);
$result = mysql_query("SELECT * FROM Art ORDER BY RAND() LIMIT 1");
$row= mysql_fetch_array($result);
$file = $row["File"];
mysql_close($con);
?>
<center><?=$file?></center>
</html>
Again, any help would be appreciated. If you need clarification, please let me know.