Image upload from php to mysql, fields are empty in BLOBS after upload
===

I have a small picture upload script which is a kind of multiple-image upload purposed one. 

Here is the total "after submit". The problem is, after upload, all the fields of pictures comes empty. None of the pictures can't be seing in the sql. What could be the problem?



    <?php
    
    ini_set('display_errors',1);
    error_reporting(E_ALL);
    $conn = mysql_connect("127.0.0.1","root","");
    if(!$conn)
    {
    	echo mysql_error();
    }
    $db = mysql_select_db("newone",$conn);
    if(!$db)
    {
    echo mysql_error();
    }
    
    $aphoto = addslashes(file_get_contents($_FILES['picone']['tmp_name']));
    $aphoto = addslashes(file_get_contents($_FILES['pictwo']['tmp_name']));
    $aphoto = addslashes(file_get_contents($_FILES['picthree']['tmp_name']));
    $aphoto = addslashes(file_get_contents($_FILES['picfour']['tmp_name']));
    $image = getimagesize($_FILES['picone']['tmp_name']); //to know about image type etc.
    $image = getimagesize($_FILES['pictwo']['tmp_name']); 
    $image = getimagesize($_FILES['picthree']['tmp_name']); 
    $image = getimagesize($_FILES['picfour']['tmp_name']); 
    
    
    
    
    $q =  "INSERT INTO pictures(picone, pictwo, picthree, picfour) Values('$picone','$pictwo','$picthree','$picfour')";
    
    
    $r = mysql_query($q,$conn);
    if($r)
    {
    	header("Location: main.php");
    	echo "Information stored successfully";
    }
    else
    {
    	echo mysql_error();
    }
    
    ?>