Penso questo
$query = "INSERT INTO tblGames (name, description, image) VALUES ($name, $description,". $target_path .")";
dovrebbe essere
$query = "INSERT INTO tblGames (name, description, image) VALUES ('$name', '$description', '". $target_path ."')";