WHEN I am tryng to insert an image in database it's not showing any error but image is not inserting in table :  I am tryng to insert  an image in database it's not showing any error but image is not inserting in table
result is printing "not" 

    <?php
    if (isset($_POST['pic_upload']))
    {
 
    if(getimagesize($_FILES['image']['tmp_name'])==False)
     {
	  echo "select img";
     }
     else{
	  $image=addslashes($_FILES['image']['tmp_name']);
	    $name=addslashes($_FILES['image']['name']);
		$image = file_get_contents($image);
		$image = base64_encode($image);
		saveimage($name,$image);
		
     }
     }
     function saveimage($name,$image)
     {
	require 'db.php';
	$sql="insert into blob(name,image) values('$name','$image')";
	$result=$conn->query($sql);
	if($result){
		echo "done";
	}
	else {
		echo 'not';
	}
    }


     ?>