Ik denk dat dit
$query = "INSERT INTO tblGames (name, description, image) VALUES ($name, $description,". $target_path .")";
zou moeten zijn
$query = "INSERT INTO tblGames (name, description, image) VALUES ('$name', '$description', '". $target_path ."')";