File empty

mysql
php

#1

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']['tmpname'];

if (!isset($file))
echo"Please select an image";
else
{
$image = addslashes(file_get_contents($FILES['image']['tmpname']));
$image_name = addslashes( $_FILES['image']['name']);
$image_size = getimagesize($FILES['image']['tmpname']) ;
}
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.<p /> Your image:<p /><img src=get.php?id=$lastitemid>";
	}
}

?>