DaveLinger Posted July 31, 2006 Share Posted July 31, 2006 I don't understand it, its 90% HTML and everything looks fine (checked the code thrice), yet it echos nothing.[code]<?phperror_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 <?phppid="32";include('includes/numberofreviews.php');?> Xbox 360 game reviews</td> </tr> <tr> <td> </td> <td> </td> <td> </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 <?phppid="12";include('includes/numberofreviews.php');?> PS2 game reviews</td> <td>There are <?phppid="14";include('includes/numberofreviews.php');?> GameCube game reviews</td> <td>There are <?phppid="13";include('includes/numberofreviews.php');?> Xbox game reviews</td> </tr> <tr> <td> </td> <td> </td> <td> </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> </td> <td> </td> <td> </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> </td> <td> </td> <td> </td> </tr> <tr> <td><img src="images/reviewicons/reviews.gif"></td> <td> </td> <td> </td> </tr> <tr> <td>N-Gage</td> <td> </td> <td> </td> </tr></table><?phpinclude('includes/footer.php');?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/16068-my-code-shows-nothing-even-with-all-error-reporting-on/ Share on other sites More sharing options...
DaveLinger Posted July 31, 2006 Author Share Posted July 31, 2006 also, header.php, footer.php, and numberofreviews.php each work fine individually. Quote Link to comment https://forums.phpfreaks.com/topic/16068-my-code-shows-nothing-even-with-all-error-reporting-on/#findComment-66195 Share on other sites More sharing options...
DaveLinger Posted July 31, 2006 Author Share Posted July 31, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/16068-my-code-shows-nothing-even-with-all-error-reporting-on/#findComment-66198 Share on other sites More sharing options...
shoz Posted July 31, 2006 Share Posted July 31, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/16068-my-code-shows-nothing-even-with-all-error-reporting-on/#findComment-66210 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.