- 1
- 2
- 3
- 4
- 5
- 6
- 7
if ($subletter) {
$firms = $db->getArray("SELECT `id_firm`, `id_service`, `id_city`, `name` FROM `firm` WHERE `id_city` IN (".implode(",", array_keys($cities)).") AND `name` REGEXP '^".mysql_real_escape_string($letter.$subletter)."' AND `blocked` = 0 ORDER BY name ASC");
}
elseif ($letter) {
$firms = $db->getArray("SELECT `id_firm`, `id_service`, `id_city`, `name` FROM `firm` WHERE `id_city` IN (".implode(",", array_keys($cities)).") AND `name` REGEXP '^".mysql_real_escape_string($letter)."' AND `blocked` = 0 ORDER BY name ASC");
}
else $firms = array();
wvxvw 16.07.2013 22:10 # +1
guest 16.07.2013 22:19 # −5
crook 18.07.2013 11:01 # 0