Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.