PHP And JS Code Not Executed
<p>i Have This PHP and JS Code on my web page.</p>

<pre><code>&lt;?php
include 'connect1.php';
$query = "SELECT URL FROM remontee_nlf ORDER BY URL ASC";
$result = mysql_query($query) or die (mysql_error());;
$counter = 0;
// write the values from the database into the javascript array
    echo "&lt;script type='text/javascript'&gt;";
    echo "this.styleListArray = new Array();";
    if ($result) {
        while($row = mysql_fetch_array($result)) {
            echo("this.nameArray[" . $counter . "] = '" . $row['URL'] . ", " .          $row['user_fname'] . "';"); // displays 'lname, fname'
            $counter += 1;
        }
    }
echo("&lt;/script&gt;");

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

<p>The Problem is that when i execute the page containing the code, a part of this code doesn't get executed and it just shows on the page as a simple text : </p>

<pre><code>"); echo "this.styleListArray = new Array();"; if ($result) { while($row =   mysql_fetch_array($result)) { echo("this.nameArray[" . $counter . "] = '" . $row['URL'] . ", " . $row['user_fname'] . "';"); // displays 'lname, fname' $counter += 1; } } echo(""); ?&gt; 
</code></pre>

<p>I tried to figure it out, but i couldn't get it, if you can help brothers, that would be wonderful.</p>
