to:tantaiyizu(痴情客)Internet Explorer 无法显示该网页
最可能的原因是:
未连接到 Internet。 
该网站遇到了问题。 
在地址中可能存在键入错误。 
 
   您可以尝试以下操作: 
     检查您的 Internet 连接。尝试访问其他网站以确定您已连接到 Internet。  
 
     重新键入地址。  
 
     返回到上一页。 
 
     更多信息 
 

解决方案 »

  1.   

    to:tantaiyizu(痴情客) 我在代码中间加了个中断
    if($arrCat[$i][pid] = $id)
    {
    $sTmp .= $arrCat[$i][title].'<br>';
    echo $sTmp;
    exit;
    showNewsCat($arrCat,$arrCat[$i][id],$arrCat[$i][pid]);
    }是可以正常输出的.
      

  2.   

    showNewsCat 函数--------很明显 ,死循环
      

  3.   

    to:tantaiyizu(痴情客)你从哪里看出来它是死循环????
      

  4.   

    这个错误太低级了,掉了一个等号,谢谢楼上,楼下的顶者有分,下面是正确代码:
    <?phpDEFINE('ROOT_PATH','../');
    require(ROOT_PATH.'inc/_config.sys.inc.php');
    require(ROOT_PATH.'inc/_const.sys.inc.php');
    require_once(_INC.'_class.db.inc.php');$db = new db($cfg);
    $action = @$_GET['action'];
    $sTmp = '';function showNewsCat($arrCat,$id,$pid)
    {
    global $sTmp;
    if($pid==0)

    $sTmp = 'ROOT..<br>';
    }
    if(!empty($arrCat))
    {
    for($i=0;$i<sizeof($arrCat);$i++)
    {
    if($arrCat[$i][pid] == $id)
    {
    $sTmp .= $arrCat[$i][title].'<br>';
    showNewsCat($arrCat,$arrCat[$i][id],$arrCat[$i][pid]);
    }
    }
    }
    }?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
     <HEAD>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <TITLE> New Document </TITLE>
     </HEAD>
     <BODY>
     <?php
    if($action=='' || $action == 'listcate')
    {
    $sqlCateList = "select * from tab_news_cate";
    $arrCateList = $db -> row_query($sqlCateList);
    showNewsCat($arrCateList,1,0);
    echo $sTmp;
    }
    ?>
     </BODY>
    </HTML>