fetch_assoc()["public"]){ die('{"error":"not_public"}'); } echo json_encode(get_results($formularid),JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);