Code for uploading in the blob :
mysql_connect('localhost','root','');
mysql_select_db("dtbase");
$file = $_FILES['logo']['tmp_name'];
echo $file;
$imgData =addslashes (file_get_contents($_FILES['logo']['tmp_name']));
$sql="insert into tab1(coname,date,volume,num,eissn,jname,info1,info2,section,logo)values('$coname','$date','$volume','$num','$eissn','$jname','$info1','$info2','$section','{$imgData}')";
$rs=mysql_query($sql);
Code for retrieving:
$image = mysql_query("SELECT * FRom tab1 WHERE coname='$coname'");
$im = mysql_fetch_assoc($image);
$img = $im['logo'];
Using $img
to show the image:
<img src="$img" />
The image does not appear on the web page.