flemingmike Posted September 19, 2010 Share Posted September 19, 2010 im not getting anything to display. any ideas? <? include "config.php"; $groups=mysql_query("SELECT ID,company,address FROM company"); while(list($cid,$ccompany,$caddress)=mysql_fetch_row($groups)){ echo "<left><br />headlogo <table width='96%' cellpadding='1' cellspacing='1' border='1'> <tr> <td width='37%' colspan='4'><b>gname</b></td> </tr> <tr> <td width='25%'>Ladder</td> <td width='25%'>Game</td> <td width='25%'>Join</td> <td width='25%'>Rules</td> </tr>"; $ladders=mysql_query("SELECT id,jobNO,companyID FROM jobno WHERE grid='$gid' ORDER BY name"); while(list($jid,$jjobNO,$jcompanyID)=mysql_fetch_row($ladders)){ echo " <tr> <td width='25%'>$link</td> <td width='25%''>$glink</td> <td width='25%'>d</td> <td width='25%'>d</td> </tr>"; } echo "</table></left>"; } echo "<br /><br />"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/213812-blank-page-am-i-mising-something-dumb/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 19, 2010 Share Posted September 19, 2010 Your code is referencing three variables - $gid, $link, and $glink that are not being set in the code you posted. These alone should be producing errors. In one of your recent posts someone suggested setting the error_reporting/display_errors settings to specific values in your master php.ini so that php would help you. Apparently you did not bother to do that. Best guess is that your first query is failing due to an error in the query and all your code is being skipped over because the first while(){} loop is false. Quote Link to comment https://forums.phpfreaks.com/topic/213812-blank-page-am-i-mising-something-dumb/#findComment-1112827 Share on other sites More sharing options...
flemingmike Posted September 19, 2010 Author Share Posted September 19, 2010 to turn error reporting on, do i just change that one entry in php.ini from off to on? Quote Link to comment https://forums.phpfreaks.com/topic/213812-blank-page-am-i-mising-something-dumb/#findComment-1112839 Share on other sites More sharing options...
fortnox007 Posted September 19, 2010 Share Posted September 19, 2010 don't use <? ?> but <?php ?> Quote Link to comment https://forums.phpfreaks.com/topic/213812-blank-page-am-i-mising-something-dumb/#findComment-1112930 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.