title: PHP + JavaScript PopUp Windows
body: <p>On my page, the following function has been created:</p>
  
  <pre><code>&lt;SCRIPT language="javascript" type="text/javascript"&gt;
      function popModData( modName )
      {
          var url = "./modList.php?mod=" + modName;
          newWindow = window.open( url, modName, 'width=500,height=500,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
          if( window.focus ) { newWindow.focus() }
          return false;
      }
  &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>And, the page itself is <strong>modList.php</strong> which loads data of different game-mods from SQL table. I want each of the game-mod name clickable, so that a pop-up opens. I am using this in the php page generation:</p>
  
  <pre><code>while( $modTable = mysql_fetch_array( $getMod ) )
  {
      $colour = ( $i % 2 )? "#99EECC" : "CCDDFF";
      echo "\t\t\t&lt;tr bgcolor='$colour'&gt;";
      echo "\n\t\t\t\t&lt;td&gt;" . $i++ . ".&lt;/td&gt;";
      echo "\n\t\t\t\t&lt;td onclick='return popModData($modTable[Name]);'&gt;$modTable[Name]&lt;/td&gt;";
      echo "\n\t\t\t\t&lt;td&gt;$modTable[From]&lt;/td&gt;\n\t\t\t&lt;/tr&gt;";
  }
  </code></pre>
  
  <p>Upto this, no trouble is faced. Now, the trouble is pop-up window opens for the first entry in the table, but not for any of the other 516 values.</p>
  
  <p>I thought of having another file to process the mod name( for eg. modData.php ) but, the problem is still there.</p>
  
  <p>Please help. If anything is missing there, please mention, and I will try to put it up too!</p>