if($res){
foreach ($res as $k => $v) {
if($v[province] !== '0'){
$sql = "select region_name from ecs_region where region_id = $v[province]";
$province = $GLOBALS['db']->getOne($sql);
//var_dump($province);
$sql = "select region_name from ecs_region where region_id = $v[city]";
$city = $GLOBALS['db']->getOne($sql);
$sql = "select region_name from ecs_region where region_id = $v[district]";
$district = $GLOBALS['db']->getOne($sql);
$res[$k][address]= $province.'-'.$city .'-'.$district.'-'.$v[address];
}
}