Jump to content

My code shows NOTHING, even with all error reporting on?


DaveLinger

Recommended Posts

I don't understand it, its 90% HTML and everything looks fine (checked the code thrice), yet it echos nothing.

[code]<?php
error_reporting(E_ALL);
include('includes/header.php');
?>
<table border="1" style="border-collapse: collapse" width="100%">
<tr>
<td><img src="images/reviewicons/reviews.gif"></td>
<td><img src="images/reviewicons/reviews.gif"></td>
<td><img src="images/reviewicons/reviews.gif"></td>
</tr>
<tr>
<td>There are 0 PS3 game reviews</td>
<td>There are 0 Wii game reviews</td>
<td>There are
<?php
pid="32";
include('includes/numberofreviews.php');
?>
Xbox 360 game reviews</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="images/reviewicons/reviews.gif"></td>
<td><img src="images/reviewicons/reviews.gif"></td>
<td><img src="images/reviewicons/reviews.gif"></td>
</tr>
<tr>
<td>There are
<?php
pid="12";
include('includes/numberofreviews.php');
?>
PS2 game reviews</td>
<td>There are
<?php
pid="14";
include('includes/numberofreviews.php');
?>
GameCube game reviews</td>
<td>There are
<?php
pid="13";
include('includes/numberofreviews.php');
?>
Xbox game reviews</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="images/reviewicons/reviews.gif"></td>
<td><img src="images/reviewicons/reviews.gif"></td>
<td><img src="images/reviewicons/reviews.gif"></td>
</tr>
<tr>
<td>PC</td>
<td>DS</td>
<td>PSP</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="images/reviewicons/reviews.gif"></td>
<td><img src="images/reviewicons/reviews.gif"></td>
<td><img src="images/reviewicons/reviews.gif"></td>
</tr>
<tr>
<td>GBA</td>
<td>Palm</td>
<td>DVD/UMD</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="images/reviewicons/reviews.gif"></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>N-Gage</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<?php
include('includes/footer.php');
?>[/code]
You might want to add "ini_set('display_errors', 'on')" to the top of the script to ensure that errors are shown. Adding "php_flag display_errors on" to a .htaccess file will show a few more errors that won't be shown if you use ini_set() to turn the option on however.

[code]
php_flag display_errors on
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.