if (CModule::IncludeModule('main')) { global $DB; $strSql = "SELECT ID FROM b_form_result WHERE USER_ID = 3" $res = $DB->Query($strSql, false, " ".__LINE__); echo $res; }