include(SERVER_ROOT.'/classes/text.class.php'); $Text = new TEXT(true); $ID = (int) $_POST['id']; if (empty($ID)) { die(); } $UserID = (int) $_POST['userid']; $UserIDSQL = ""; if (!empty($UserID)) { $UserIDSQL = " AND UserID != '$UserID' "; } G::$DB->query("SELECT UserID, Answer, Date FROM staff_answers WHERE QuestionID = '$ID' $UserIDSQL ORDER BY DATE DESC"); $Answers = G::$DB->to_array(); ?>