Je pense que cela
$query = "INSERT INTO tblGames (name, description, image) VALUES ($name, $description,". $target_path .")";
devrait être
$query = "INSERT INTO tblGames (name, description, image) VALUES ('$name', '$description', '". $target_path ."')";