在我的网站上,如果error_reporting不是-1,则页面完全出现问题
我制作了两个页面,两者完全相同,只是testblog.php有error_reporting(0);而blog.php有error_reporting(-1);
以下是这些页面: http://pirates-online-rewritten.com/blog.php http://pirates-online-rewritten.com/testblog.php
这是我的代码(请修改某人的格式,我不知道如何):
<?php
include "header2.php";
include "connect.php";
error_reporting(-1);
$ID = mysql_real_escape_string(strip_tags(stripslashes($_GET['ID'])));
$getPost = mysql_query("SELECT * FROM Blogs WHERE ID='$ID'");
$gP = mysql_fetch_object($getPost);
?>
<table border="0" cellpadding="0" cellspacing="0" width="626" summary="layout table">
<tr>
<td valign="top" width="626">
<!-- BEGIN CENTER CONTENT -->
<table border="0" cellpadding="0" cellspacing="0" width="626" summary="layout table">
<tr>
<td colspan="3" width="626"><img src="http://www.pirates-online-rewritten.com/images/Title_currentnews.gif" width="626" height="86" border="0" alt="Current News" /></td>
</tr>
<tr valign="top">
<td background="http://www.pirates-online-rewritten.com/images/parch_left.gif">
<img src="http://www.pirates-online-rewritten.com/images/dot.gif" width="57" height="327" border="0" alt="" />
</td>
<td background="http://www.pirates-online-rewritten.com/images/parch_bg.gif">
<?php
echo $gP->Title, $gP->Body;
?>
</td>
<td background="http://www.pirates-online-rewritten.com/images/parch_right.gif">
<img src="http://www.pirates-online-rewritten.com/images/dot.gif" width="58" height="327" border="0" alt="" />
</td>
</tr>
<tr>
<td colspan="3" width="626">
<img src="http://www.pirates-online-rewritten.com/images/parch_bot.gif" alt="parch_bot.jpg" width="626" height="55" border="0" />
</td>
</tr>
<tr>
<!-- SET THE MENU LAYOUT -->
<td>
<img src="http://www.pirates-online-rewritten.com/images/spacer.gif" height="0" width="0"/>
</td>
</tr>
</table>
<!-- END CENTER CONTENT -->
</td>
</tr>
</table>
</div>
<?php
include "footer.php";
?>