My guess is a permission problem on the target directory, but let's add some debugging to find out:
<?php
// turn on all error reporting for now (you can comment out later)
ini_set('display_errors', 1);
error_reporting(E_ALL);
// ... start of script, then ...
if (move_uploaded_file($_FILES['getFile']['tmp_name'], $location))
{
$file = "INSERT INTO upload VALUES('', 'location')";
mysql_query($file, $link_id) or die(mysql_error());
}
else
{
user_error("move_uploaded_file() failed: " . $_FILES['getFile']['error']
}