Welcome Guest, Not a member yet? Register   Sign In
Problem with endif
#4

[eluser]Dam1an[/eluser]
It should be
Code:
<?php if (isset($navigation) && !empty($navigation)): ?>
<ul id="nav">
    &lt;?php foreach ($navigation as $nav): ?&gt;
        <li><a href="#">123</a></li>
    &lt;?php endforeach;?&gt;
</ul>
&lt;?php endif;?&gt;

Colons for the opening statements, and a standard semi colon when you close the if/foreach


Messages In This Thread
Problem with endif - by El Forum - 05-20-2009, 07:24 AM
Problem with endif - by El Forum - 05-20-2009, 07:27 AM
Problem with endif - by El Forum - 05-20-2009, 07:39 AM
Problem with endif - by El Forum - 05-20-2009, 07:43 AM
Problem with endif - by El Forum - 05-20-2009, 07:46 AM
Problem with endif - by El Forum - 05-20-2009, 07:48 AM
Problem with endif - by El Forum - 05-20-2009, 07:05 PM
Problem with endif - by El Forum - 05-21-2009, 01:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB