Help with php blank page?
<p>I run a fantasy basketball league. My php website/sql database is designed to let the person running the team do everything through the website - they can waive a player, and the player automatically goes into the FA pool, etc.</p>

<p>Everything has worked perfectly until about a week ago. Anytime now that a team goes to sign a player, after clicking "Sign", they get a blank PHP page. I have no idea why - I have made no adjustments to any files. It just started happening. Below is the code for the blank PHP page - can someone help?</p>

<pre><code>&lt;?php

$username = "me";
$password = "mypassword";
$database = "mydatabase";

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

$Team_Offering = $_POST['Team_Name'];
$Fields_Counter = $_POST['counterfields'];
$Roster_Slots = $_POST['rosterslots'];
$Healthy_Roster_Slots = $_POST['healthyrosterslots'];
$Type_Of_Action = $_POST['Action'];

$queryt="SELECT * FROM nuke_ibl_team_info WHERE team_name = '$Team_Offering' ";
$resultt=mysql_query($queryt);

$teamid=mysql_result($resultt,0,"teamid");

$Timestamp = intval(time());


// ADD TEAM TOTAL SALARY FOR THIS YEAR

$querysalary="SELECT * FROM nuke_iblplyr WHERE teamname = '$Team_Offering' AND retired = 0 ";
$results=mysql_query($querysalary);
$num=mysql_numrows($results);
$z=0;

while($z &lt; $num)
    {
     $cy=mysql_result($results,$z,"cy");
     $cyy = "cy$cy";
     $cy2=mysql_result($results,$z,"$cyy");
     $TotalSalary = $TotalSalary + $cy2;
     $z++;
    }

//ENT TEAM TOTAL SALARY FOR THIS YEAR

$k=0;
$Salary=0;

while ($k &lt; $Fields_Counter)
{
$Type=$_POST['type'.$k];
$Salary=$_POST['cy'.$k];
$Index=$_POST['index'.$k];
$Check=$_POST['check'.$k];
$queryn="SELECT * FROM nuke_iblplyr WHERE pid = '$Index' ";
$resultn=mysql_query($queryn);
$playername=mysql_result($resultn,0,"name");
$players_team=mysql_result($resultn,0,"tid");

if ($Check == "on")
  {
  if ($Type_Of_Action == "drop")
    {
      if ($Roster_Slots &lt; 4 and $TotalSalary &gt; 7000)
     {

       echo "You have 12 players and are over $70 mill hard cap.  Therefore you can't drop a player! &lt;br&gt;You will be automatically redirected to &lt;a href=\"http://www.chibul.com/iblv2\"&gt;the main IBL page&lt;/a&gt; in a moment.  If you are not redirected, click the link.";

     }else{

       $queryi = "UPDATE nuke_iblplyr SET `ordinal` = '1000', `droptime` = '$Timestamp' WHERE `pid` = '$Index' LIMIT 1;";
       $resulti=mysql_query($queryi);

       $topicid=32;
       $storytitle=$Team_Offering." make waiver cuts";
       $hometext="The ".$Team_Offering." cut ".$playername." to waivers.";

       // ==== PUT ANNOUNCEMENT INTO DATABASE ON NEWS PAGE 
       $timestamp=date('Y-m-d H:i:s',time());

       $querycat="SELECT * FROM nuke_stories_cat WHERE title = 'Waiver Pool Moves'";
       $resultcat=mysql_query($querycat);
       $WPMoves=mysql_result($resultcat,0,"counter");
       $catid=mysql_result($resultcat,0,"catid");

       $WPMoves=$WPMoves+1;

       $querycat2="UPDATE nuke_stories_cat SET counter = $WPMoves WHERE title = 'Waiver Pool Moves'";
       $resultcat2=mysql_query($querycat2);

       $querystor="INSERT INTO nuke_stories (catid,aid,title,time,hometext,topic,informant,counter,alanguage) VALUES ('$catid','Associated Press','$storytitle','$timestamp','$hometext','$topicid','Associated Press','0','english')";
       $resultstor=mysql_query($querystor); 
       echo "&lt;html&gt;&lt;head&gt;&lt;title&gt;Waiver Processing&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
      Your waiver moves should now be processed.  &lt;br&gt;You will be automatically redirected to &lt;a href=\"http://www.chibul.com/iblv2\"&gt;the main IBL page&lt;/a&gt; in a moment.  If you are not redirected, click the link.
      &lt;/body&gt;&lt;/html&gt;";
     }

    } else {
      if ($players_team == $teamid)
     {
       $queryi = "UPDATE nuke_iblplyr SET `ordinal` = '800', `teamname` = '$Team_Offering', `tid` = '$teamid' WHERE `pid` = '$Index' LIMIT 1;";
       $resulti=mysql_query($queryi);
       $Roster_Slots++;

       $topicid=33;
       $storytitle=$Team_Offering." make waiver additions";
       $hometext="The ".$Team_Offering." sign ".$playername." from waivers.";

       // ==== PUT ANNOUNCEMENT INTO DATABASE ON NEWS PAGE 

       $timestamp=date('Y-m-d H:i:s',time());

       $querycat="SELECT * FROM nuke_stories_cat WHERE title = 'Waiver Pool Moves'";
       $resultcat=mysql_query($querycat);
       $WPMoves=mysql_result($resultcat,0,"counter");
       $catid=mysql_result($resultcat,0,"catid");

       $WPMoves=$WPMoves+1;

       $querycat2="UPDATE nuke_stories_cat SET counter = $WPMoves WHERE title = 'Waiver Pool Moves'";
       $resultcat2=mysql_query($querycat2);

       $querystor="INSERT INTO nuke_stories (catid,aid,title,time,hometext,topic,informant,counter,alanguage) VALUES ('$catid','Associated Press','$storytitle','$timestamp','$hometext','$topicid','Associated Press','0','english')";
       $resultstor=mysql_query($querystor); 
       echo "&lt;html&gt;&lt;head&gt;&lt;title&gt;Waiver Processing&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
      Your waiver moves should now be processed.  &lt;br&gt;You will be automatically redirected to &lt;a href=\"http://www.chibul.com/iblv2\"&gt;the main IBL page&lt;/a&gt; in a moment.  If you are not redirected, click the link.
      &lt;/body&gt;&lt;/html&gt;";

     } else {

       if ($Healthy_Roster_Slots &lt; 4 and $TotalSalary + $Salary &gt; 7000)
       {

        echo "You have 12 or more healthy players and this signing will put you over $70.  Therefore you can not make this signing. &lt;br&gt;You will be automatically redirected to &lt;a href=\"http://www.chibul.com/iblv2\"&gt;the main IBL page&lt;/a&gt; in a moment.  If you are not redirected, click the link.";

       } elseif ($Healthy_Roster_Slots &gt; 3 and $TotalSalary + $Salary &gt; 7000 and $Salary &gt; 103) {

        echo "You are over the hard cap and therefore can only sign players who are making veteran minimum contract! &lt;br&gt;You will be automatically redirected to &lt;a href=\"http://www.chibul.com/iblv2\"&gt;the main IBL page&lt;/a&gt; in a moment.  If you are not redirected, click the link.";

       } elseif ($Healthy_Roster_Slots &lt; 1) {
        echo "You have full roster of 15 players.  You can't sign another player at this time! &lt;br&gt;You will be automatically redirected to &lt;a href=\"http://www.chibul.com/iblv2\"&gt;the main IBL page&lt;/a&gt; in a moment.  If you are not redirected, click the link.";

       } else {

        $queryi = "UPDATE nuke_iblplyr SET `ordinal` = '800', `bird` = '0', `cy` = '1', `cy1` = '$Salary', `teamname` = '$Team_Offering', `tid` = '$teamid' WHERE `pid` = '$Index' LIMIT 1;";
        $resulti=mysql_query($queryi);
        $Roster_Slots++;

        $topicid=33;
        $storytitle=$Team_Offering." make waiver additions";
        $hometext="The ".$Team_Offering." sign ".$playername." from waivers.";

        // ==== PUT ANNOUNCEMENT INTO DATABASE ON NEWS PAGE 

        $timestamp=date('Y-m-d H:i:s',time());

        $querycat="SELECT * FROM nuke_stories_cat WHERE title = 'Waiver Pool Moves'";
        $resultcat=mysql_query($querycat);
        $WPMoves=mysql_result($resultcat,0,"counter");
        $catid=mysql_result($resultcat,0,"catid");

        $WPMoves=$WPMoves+1;

        $querycat2="UPDATE nuke_stories_cat SET counter = $WPMoves WHERE title = 'Waiver Pool Moves'";
        $resultcat2=mysql_query($querycat2);

        $querystor="INSERT INTO nuke_stories (catid,aid,title,time,hometext,topic,informant,counter,alanguage) VALUES ('$catid','Associated Press','$storytitle','$timestamp','$hometext','$topicid','Associated Press','0','english')";
        $resultstor=mysql_query($querystor); 
        echo "&lt;html&gt;&lt;head&gt;&lt;title&gt;Waiver Processing&lt;/title&gt;
       &lt;/head&gt;
       &lt;body&gt;
       Your waiver moves should now be processed.  &lt;br&gt;You will be automatically redirected to &lt;a href=\"http://www.chibul.com/iblv2\"&gt;the main IBL page&lt;/a&gt; in a moment.  If you are not redirected, click the link.
       &lt;/body&gt;&lt;/html&gt;";

      }
     }
    }
  }
$k++;
}

?&gt;
</code></pre>
