I created a table using the BLOB column to hold a jpeg file. on the MySQL database that I created using phpmyadmin.
I am having trouble with the php variable $result here.
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?