Jump to content

blank page. am i mising something dumb?


flemingmike

Recommended Posts

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 />";

?>

Link to comment
https://forums.phpfreaks.com/topic/213812-blank-page-am-i-mising-something-dumb/
Share on other sites

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.

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.