PHP100 2019-03-27
代码如下:
$sql = "select region_name from ".$GLOBALS['ecs']->table('region') . " where region_id in(".$arr['country'].",".$arr['province'].",". $arr['city'].",".$arr['district'].")"; $address = $GLOBALS['db']->getAll($sql); foreach($address as $value) { $arr['address1'] .= $value['region_name']."-"; }