该了名字也不可以,显示的是与localhost链接中断
错误 101 (net::ERR_CONNECTION_RESET):连接已重置
别的PHP文件都可以正常访问。

解决方案 »

  1.   

    <?php
    error_reporting("E_ALL ~& E_NOTICE");
    header("Content-Type:text/html;charset=utf-8");
    include "../common/page.class.php";

    $link=mysql_connect("localhost", "root", "")or die("Mysql server connect fault"); mysql_select_db("mysql")or die("database connect fault");
    $result=mysql_query("select * from help_category");
    $total=mysql_num_rows($result); $num=12;

    $page=new Page($total, $num, "&cid=99"); $sql="select * from help_category {$page->limit}"; $result=mysql_query($sql); echo '<table align="center" width="600">';
    echo '<caption><h1>用户列表</h1></caption>'; while($row=mysql_fetch_assoc($result)){
    echo '<tr>';
    echo '<td>'.$row["help_category_id"].'</td>';
    echo '<td>'.$row["name"].'</td>';
    echo '<td>'.$row["parent_category_id"].'</td>';
    echo '<td>'.$row["url"].'</td>';
    echo '</tr>';
    } echo '<tr><td colspan="4" align="right">'.$page->fpage(array(8,3,4,5,6,7,0,1,2)).'</td></tr>';
    echo '</table>';
      

  2.   

    我已经重启很多次才提问的
    感觉这个wamp一直在抽疯,我实在是忍无可忍了,我决定了,我要自己搭建一个lamp环境
      

  3.   

    你的wamp什么版本。实在不行。换xampp或者自己搭个环境。
      

  4.   

    Ctrl+A 然后Ctrl+c 然后删掉原来的文件,再建一个名字一样的文件,把内容Ctrl+V进去就行了 
      

  5.   

    wamp貌似就是有问题啊,要不你换个appserv试试,这么貌似问题少些诶,不过许多人说没有wamp方便。随你啦^_^,如果还是不行的话,那可能就不是继承环境的问题了