getDB()->q($obj->getSelect(' AND `title` LIKE "' . db_escape_string($_GET['str']) . '%" AND `_sys_enabled` ORDER BY _sys_city.big_city DESC, region_id ASC, `_sys_city`.`title` ASC LIMIT 100')); while($db2->r()) { $obj->lRow($db2); $tt[] = $obj->assign("{title} ({city_fullname})|{_sys_city_id}"); } if ($tt) { die(implode("\n", $tt)); } else { die('Такой населенный пункт не найден.|0'); }