">"> 回复讨论(解决方案)">
时间:2021-07-01 10:21:17 帮助过:25人阅读
$query = "select * from tbl_department where dpUpID ='0'";
$query_info = mysql_query($query);
while($row = mysql_fetch_array($query_info)){
$query_1 = "select * from tbl_department where dpUpID = ' $row[dpName]'";
$query_info_1 = mysql_query($query_1);
while($row_1 = mysql_fetch_array($query_info_1)){
$query_2 = "select * from tbl_department where dpUpID = ' $row_1[ID]'";
$query_info_2 = mysql_query($query_2);
while($row_2 = mysql_fetch_array($query_info_2)){
}
}
}
筛选范围交叉了吧?