PHP code to Javascript
<p>How can I convert this PHP code to javascript? I wanna use .js file to insert other pages. If there are other ways please tell me.
thanks! :)</p>

<pre><code>&lt;?
include 'config.php';
$select = mysql_query("SELECT * FROM `currency`");
$num=mysql_num_rows($select);

    while($row=mysql_fetch_object($select))
    {

        $id=$row-&gt;id;
        $qveyana=$row-&gt;qveyana;
        $simbolo=$row-&gt;simbolo;
        $kursi=$row-&gt;kursi;
        $zrda=$row-&gt;zrda;
        $drosha=$row-&gt;drosha;           

?&gt;
&lt;table border="0" width="300" cellpadding="" cellspacing="0"&gt;
&lt;tr bgcolor="#CCCCCC" bordercolor="#FF0000"&gt;&lt;td width="22"&gt;&lt;i.mg src="&lt;? echo  $drosha; ?&gt;" width="20"  /&gt;&lt;/td&gt;&lt;td width="50"&gt;&lt;? echo $qveyana; ?&gt;&lt;/td&gt;&lt;td width="40"&gt;&lt;? echo $simbolo; ?&gt;&lt;/td&gt;&lt;td&gt;&lt;? echo $kursi; ?&gt;&lt;/td&gt;&lt;td&gt;&lt;? echo $zrda; ?&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;/table&gt;
&lt;? } ?&gt;
</code></pre>
