I created a MySQL database with a table using phpmyadmin. I created this table with a BLOB column to hold a jpeg file.
I have issues with regards to the php variable $result here.
My code so far: (catalog.php):
<body> <?php $link = mysql_connect("localhost", "root", ""); mysql_select_db("dvddb"); $sql = "SELECT dvdimage FROM dvd WHERE id=1"; $result = mysql_query("$sql"); mysql_close($link); ?> <img src="" width="175" height="200" /> </body> How can I get the variable $result from PHP into the HTML so I can display it in the <img> tag?