forming php tag within html
<p>Hello I have a script like below:</p>

<pre><code>&lt;div id="contentLeft"&gt;
&lt;ul&gt;
    &lt;?php
        while ($row = $result-&gt;fetch_assoc()){?&gt;
        &lt;li id="recordsArray_&lt;?php echo $row['id']; ?&gt;"&gt;&lt;?php echo $row['content']; ?&gt;&lt;/li&gt;  
    &lt;?php}?&gt;
&lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>But I get an error saying - Parse error: syntax error, unexpected $end in C:\wamp\www\drag\index.php on line 53</p>

<p>What have I done wrong?</p>
