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