Parse error: syntax error, unexpected ‘endforeach’ (T_ENDFOREACH) in

<ul class=”project-extension-side-link”>
<?php foreach($projectextensions as $projectextension){?>
<li <?php if($section==’project-extension’)
{echo ‘class=”active”‘;}>><span>Project 1</span></li>
<li><a href=””><?php echo $projectextension->post_title; ?></a></li>
<li><a href=””>Project 3</a></li>
<li><a href=””>Project 4</a></li>
<li><a href=””>Project 5</a></li>
<li><a href=””>Project 6</a></li>
</ul>

<?php endforeach;?>
<?php}?>

Read more here:: Parse error: syntax error, unexpected ‘endforeach’ (T_ENDFOREACH) in

Leave a Reply

Your email address will not be published. Required fields are marked *