There is a field called image in interiors, but is this solution for if the picture stored in there is just the file path to the picture? Because in my situation there isn't a file path stored in images. It's the actual image made up of a bunch of random characters. Here is the script that gets the picture into the table.
<html>
<head><title>Store binary data into SQL Database</title></head>
<body>
<?php
if ($submit) {
// connect to the database
// (you may have to adjust the hostname,username or password)
MYSQL_CONNECT("hostname","username","password");
mysql_select_db("caseclu_foaminterior");
$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
$result=MYSQL_QUERY("INSERT INTO interiors (id,category,description,image,filename,filesize,filetype) ".
"VALUES ('$id','$category','$description','$data','$form_data_name','$form_data_size','$form_data_type')");
$id= mysql_insert_id();
print "<p>This file has the following Database ID: <b>$id</b>";
MYSQL_CLOSE();
} else {
// else show the form to submit new data:
?>
<form method="post" action="<?php echo $PHP_SELF; ?>" enctype="multipart/form-data">
<TABLE>
<TR>
<TD><font size="2" face="Verdana, Arial, Helvetica, sans-serif">ID:</font></TD>
<TD> <input type=text name="id"></TD>
</TR>
<TR>
<TD><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Category:</font></TD>
<TD><input type=text name="category"></TD>
</TR>
<TR>
<TR>
<TD><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description:</font></TD>
<TD><input type=text name="description" size="27"></TD>
</TR>
<TR>
<TR>
<TD><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Image:</font></TD>
<TD><input type="hidden" name="MAX_FILE_SIZE" value="1000000">
<input type="file" name="form_data" size="40"></TD>
</TR>
<TR>
<TD><input type="submit" value="submit" name="submit"></TD>
<TD><input type="reset" value="Reset" name="Reset"></TD>
</TR>
</TABLE>
</form>
<?php
}
?>
</body>
</html>
(I do have a script that can simply view the image) Let me know if that would help in modifying to what I need.