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

[eluser]tobbesanda[/eluser]
It's a simple code like:

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;

It works if I use:

Code:
&lt;?php if (isset($navigation) && !empty($navigation)) { ?&gt;
<ul id="nav">

    &lt;?php foreach ($navigation as $nav) { ?&gt;
    
    <li><a href="#">123</a></li>
    
    &lt;?php } ?&gt;
    
</ul>
&lt;?php } ?&gt;

I find it really strange...


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