<?php
$r=mysql_query("SELECT city.id as city_id, locality.id,locality.area_name ".
"FROM city, locality ".
"WHERE city.id = locality .city_id order by city_id");
while($rss=mysql_fetch_object($r))
{
?>
<legend><?=$rss->city_id?></legend>
<input type="checkbox" name="sub_type[]" id="sub_type" value="<?=$rss->id?>" />
<span><?=$rss->area_name?></span><br/>
<?php
}
?>
我正在用城市身份标识展示地区名称。 问题是,由于环绕,每个地区的名称都添加了这一标识。 我怎么能够阻止身份证多次重复,以便检查箱按照他们所属的城市身份证分类?