Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE), expecting end of file in C:\xampp\htdocs\demology\errors.php on line 11 : <p>//I get the above error when I try to run my registeration page</p>



<pre><code>&lt;div&gt;
    &lt;?php foreach ($errors as $error): ?&gt;

        &lt;p&gt; &lt;?php echo $error; ?&gt;&lt;/p&gt;
    &lt;?php endforeach; ?&gt;

&lt;/div&gt;
</code></pre>


