show js array in html table
<p>I have a javascript array and I want to show parts of it in HTML.</p>

<p>For example what html code would I use in the body to show a table of just the info from QR4 - the number and the country?  There are other parts to the array so to show the whole QR4 array would be fine, but Id also like to know how to select specific parts</p>

<pre><code>QR4[25]  = "China";
QR4[24]  = "39241000";

QR8[25]  = "China";
QR8[24]  = "39241000";

QR8L[25] = "China";
QR8L[24] = "39241000";

QR4L[25] = "China";
QR4L[24] = "39241000";
</code></pre>

<p>I have this code making a table in php using csv which works fine but I want it client side, not server side.  A table like this would be fine...</p>

<pre><code>&lt;?php
echo "&lt;table&gt;\n\n";
$f = fopen("csv.csv", "r");
while (!feof($f) )  {
    echo "&lt;tr&gt;";
    $line_of_text = fgetcsv($f);
            echo "&lt;td&gt;" .  $line_of_text[10] . "&lt;/td&gt;";

    echo "&lt;tr&gt;\n";
}
fclose($f);
echo "\n&lt;/table&gt;";
?&gt;
</code></pre>
