下面是我的代码,如何写为,如果第四级分类的下级分类为空,在第五级分类里显示类别为“无下级分类”  <!--传递一级类别改变的框架-->
<iframe height=0 width=0 src="" id="YC" name="YC"></iframe>
<script language="javascript">
//以下是当选择一级类别时,二级类别就改变
function GetCapital(capitalid)
{
//alert(capitalid);
document.frames["YC"].location.replace("inc/type61.php?capitalid="+capitalid);
}
//点击二级分类,出现三级分类
function GetCity(cityid)
{
document.frames["YC"].location.replace("inc/type62.php?cityid="+cityid);
}
//三级类
function GetCity3(cityid)
{
document.frames["YC"].location.replace("inc/type63.php?cityid="+cityid);
}
function GetCity4(cityid)
{
document.frames["YC"].location.replace("inc/type64.php?cityid="+cityid);
}
function GetCity5(cityid)
{
document.frames["YC"].location.replace("inc/type65.php?cityid="+cityid);
}
</script> 
 
 
 下面的是type64.php和type65.php 的代码,看下怎么改
<?php  
 include("../conn.php");
  
 //得到三级分类内容
  $i=1;  $sql1=mysql_query("select * from small_type5 where big_type5=".$_GET[cityid]." order by showtime asc ,id",$conn);
  while ($info1=mysql_fetch_array($sql1))
{
if($i==1)
{
$firstid6=$info1[id];
}
$i=2;$aa=$aa."<option value=".$info1[id].">".$info1[title]."</option>";

  $sql1=mysql_query("select * from small_type6 where big_type6=".$firstid6." order by showtime asc ,id",$conn);
  while ($info1=mysql_fetch_array($sql1))
{$ee=$ee."<option value=".$info1[id].">".$info1[title]."</option>";
} ?>
<script>
parent.ccity4.innerHTML="";
parent.load400.innerHTML="<select name='typeid5' class='inputcss_kuan' onchange=GetCity5(this.options[this.selectedIndex].value)><?php echo $aa?></select>";parent.ccity5.innerHTML="";
parent.load500.innerHTML="<select name='typeid6' class='inputcss_kuan'><?php echo $ee?></select>";
</script>
<?php  
 include("../conn.php");
  
 //得到三级分类内容
  $sql1=mysql_query("select * from small_type6 where big_type6=".$_GET[cityid]." order by showtime asc ,id",$conn);
  while ($info1=mysql_fetch_array($sql1))
{$aa=$aa."<option value=".$info1[id].">".$info1[title]."</option>";

?>
<script>
parent.ccity5.innerHTML="";
parent.load500.innerHTML="<select name='typeid6' class='inputcss_kuan'><?php echo $aa?></select>";
</script>