Hello I have a script like below:
<div id="contentLeft">
<ul>
<?php
while ($row = $result->fetch_assoc()){?>
<li id="recordsArray_<?php echo $row['id']; ?>"><?php echo $row['content']; ?></li>
<?php}?>
</ul>
</div>
But I get an error saying – Parse error: syntax error, unexpected $end in C:\wamp\www\drag\index.php on line 53
What have I done wrong?
Leave a space there. And try not to use this format….
I think it is better to use this