Myslím, že toto
$query = "INSERT INTO tblGames (name, description, image) VALUES ($name, $description,". $target_path .")";
by měl být
$query = "INSERT INTO tblGames (name, description, image) VALUES ('$name', '$description', '". $target_path ."')";