while1("*","yjcode_type where admin=4 and type1='".$ty1name."'and type2='".$ty2name."' and type3='".$ty3name."' order by xh asc");while($row1=mysql_fetch_array($res1)){
$nu="type4.php?ty1id=".$ty1id."&ty2id=".$ty2id."&ty3id=".$ty3id."&action=update&id=".$row1[id];
?>
while2("*","yjcode_type where admin=5 and type1='".$row1[type1]."' and type2='".$row1[type2]."' and type3='".$row1[type3]."' and type4='".$row1[type4]."' order by xh asc");while($row2=mysql_fetch_array($res2)){
$nu="type5.php?action=update&id=".$row2[id]."&ty1id=".$ty1id."&ty2id=".$ty2id."&ty3id=".$ty3id."&ty4id=".$row1[id];
?>
}
}
?>