php - Page glitches unless error_reporting is -1? -
on site, if error_reporting not -1, page entirely glitches out
i made 2 pages, both same except testblog.php has error_reporting(0);, whereas blog.php has error_reporting(-1);
these pages: http://pirates-online-rewritten.com/blog.php http://pirates-online-rewritten.com/testblog.php
this code (please fix format someone, don't know how):
<?php include "header2.php"; include "connect.php"; error_reporting(-1); $id = mysql_real_escape_string(strip_tags(stripslashes($_get['id']))); $getpost = mysql_query("select * blogs 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 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"; ?>
Comments
Post a Comment