Пример #1
0
 function GetDropDownList($strSqlOrder = "ORDER BY ID")
 {
     global $DB;
     $err_mess = CModule::err_mess() . "<br>Function: GetDropDownList<br>Line: ";
     $strSql = "\r\n\t\t\tSELECT\r\n\t\t\t\tID as REFERENCE_ID,\r\n\t\t\t\tID as REFERENCE\r\n\t\t\tFROM \r\n\t\t\t\tb_module\r\n\t\t\t{$strSqlOrder}\r\n\t\t\t";
     $res = $DB->Query($strSql, false, $err_mess . __LINE__);
     return $res;
 }
Пример #2
0
	function GetDropDownList($strSqlOrder="ORDER BY ID")
	{
		global $DB;
		$err_mess = (CModule::err_mess())."<br>Function: GetDropDownList<br>Line: ";
		$strSql = "
			SELECT
				ID as REFERENCE_ID,
				ID as REFERENCE
			FROM
				b_module
			$strSqlOrder
			";
		$res = $DB->Query($strSql, false, $err_mess.__LINE__);
		return $res;
	}