query($sql); db_check($sth, $answer); $answer["output"] = $sth->fetchAll(PDO::FETCH_ASSOC); $answer["success"] = 1; exit(json_encode($answer)); ?>