Jump to content

Archived

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

DaveLinger

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

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]

Share this post


Link to post
Share on other sites
also, header.php, footer.php, and numberofreviews.php each work fine individually.

Share this post


Link to post
Share on other sites
piece of crap. I hate it when I fumble with code for 3 hours and when I finally ask for help I see exactly what I did wrong.

I have: "pid=""", when it should be "$pid="""

mods can delete or close

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

×

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.