How to use a php code in javascript
<p>I want to use php code in javascrip ,but it dosn't work:</p>

<pre><code>        &lt;script type="text/javascript"&gt;
        function edit(pollNo)
        {
            &lt;?php
                $result = mysql_query( 'CALL ret_poll('.pollNo.')' );
                $row = mysql_fetch_assoc($result);
                echo 'document.poll.pollTitle.value='.$row['title'];
            ?&gt;

        }
    &lt;/script&gt;
</code></pre>
