hi,
$image=addslashes(file_get_contents($file['tmp_name']));
$image_name=addslashes($file['name']);
$qry="INSERT INTO `cart`.`photo` (`id`, `iname`, `description`, `price`, `shipping`, `quantity`, `name`, `image`) VALUES ('', '$iname', '$desc', '$price', '$shipping', '$qunt', '$image_name','$image')";
I have using this code for inserting, in my datatype of my image column is BLOB.
when I am retrieving the image from database I got some unrecognized code.
display image:
echo '<img src="'.$get_row['image'].'" height="150ox" width="150px" alt="image" />';