File empty

The errors shown are these, can someone help
file_get_contents(): Filename cannot be empty

getimagesize(): Filename cannot be empty

<?php mysql_connect("localhost","root","") or die(mysql_error()); mysql_select_db("travelstoredb") or die(mysql_error()); $file = $_FILES['image']['tmp_name']; if (!isset($file)) echo"Please select an image"; else { $image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); $image_name = addslashes( $_FILES['image']['name']); $image_size = getimagesize($_FILES['image']['tmp_name']) ; } if ($image_size==FALSE) echo "That's not an image"; else { if (!$insert = mysql_query("INSERT INTO item VALUES ('','$image_name','$image')")){ echo "There is a problem with uploading the image."; }else { $lastid = mysql_insert_id(); echo "Image uploaded.

Your image:

"; } } ?>