Opening a new window using php and displaying data in that
<p>I am having a problem in my php. What I'm trying to do here is, that I have a .html which directs to an external .js and this js file open up a .php 
The php extracts data from mysql tables and xml and displays the data on the webpage, (in .html form as table rows). Now when a user clicks on any row, I want that php should open up a new window and I want to display some more data from the same mysql and xml on it (the new window)</p>

<pre><code>for($k=0;$k&lt;=$x-&gt;length-1;$k++)
{
    for($l=0;$l&lt;=$j-1;$l++)
    {
        if($y-&gt;item($k)-&gt;nodeValue==$JobNoArr[$l])
        {
            $m++;
            if ($m%2==0)
                {$a="#A5ADEA";}
            else 
                {$a="#D1D1D3";}

            //form_html1+="&lt;tr onclick='show(" + x + ")' bgcolor="+ y +"&gt;";
            echo "&lt;tr bgcolor=". $a ."&gt;";
            echo "&lt;td&gt;" . $m . "&lt;/td&gt;";
            echo "&lt;td&gt;" . ($y-&gt;item($k)-&gt;nodeValue) . "&lt;/td&gt;";
            echo "&lt;td&gt;" . ($TitleArr[$l]) . "&lt;/td&gt;";
            echo "&lt;td onclick=show(".$u-&gt;item($k)-&gt;nodeValue.")&gt;&lt;i&gt;&lt;font size=2&gt;Click for Abstract&lt;/font&gt;&lt;/i&gt;&lt;/td&gt;";
            echo "&lt;td&gt;" . $uu . "&lt;/td&gt;";
            echo "&lt;/tr&gt;";
        }
    }
}
</code></pre>

<p>If I use <code>echo "&lt;td onclick=show()   "</code> it opens the show function in the <code>.js</code> file but if I use <code>echo "&lt;td onclick=".show()."...   "</code> it opens the function in php itself but without the onclick functionality. </p>

<p>I don't know if have been able to clearly explain my problem here, but if you can help me in this, please do so.</p>
