<?
if ($amps=="อำเภอ%"){
$sql=" select * from cod_depart where amper like '$amps'";
}
else{
$sql=" select * from cod_depart where amper not like '$amps'";
}
$db_query=mysql_db_query($db_explan,$sql);
$num_rows=mysql_num_rows($db_query);
while($result = mysql_fetch_array($db_query)){
$all_amper_id = $result[amper_id];
$all_amper = $result[amper];
}
?>