突然有一个PHP文件访问不了了,不知道是什么情况 该了名字也不可以,显示的是与localhost链接中断错误 101 (net::ERR_CONNECTION_RESET):连接已重置别的PHP文件都可以正常访问。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?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>'; 我已经重启很多次才提问的感觉这个wamp一直在抽疯,我实在是忍无可忍了,我决定了,我要自己搭建一个lamp环境 你的wamp什么版本。实在不行。换xampp或者自己搭个环境。 Ctrl+A 然后Ctrl+c 然后删掉原来的文件,再建一个名字一样的文件,把内容Ctrl+V进去就行了 wamp貌似就是有问题啊,要不你换个appserv试试,这么貌似问题少些诶,不过许多人说没有wamp方便。随你啦^_^,如果还是不行的话,那可能就不是继承环境的问题了 flash如何调用xml的数据,数据是图片和超链接 问一个关于IIS和apache函数不兼容的问题!!急急急 在加载程序是显示进度条,加载完后隐藏 又一编码问题。 unicode怎么转big5啊 LAMP环境,能否访问另外一台服务器中的MS SQL Server或Oracle数据库的数据? Xml问题 document.write里面怎么写一个alart事件?在script里面的 很急的问题,3x 谁能提供一些 PHP 网址 谁有用PHP写的UBB正则表达式啊? header()和session_start()前面不能有任何输出是什么意思 问一个数组问题,急……
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>';
感觉这个wamp一直在抽疯,我实在是忍无可忍了,我决定了,我要自己搭建一个lamp环境