...

View Full Version : Dropdown navigation bar from database



Lpmraven
07-27-2012, 02:09 PM
Hi everyone,

I'm having problems with my drop down navigation bar, here is the coding for the section that the problem is occuring:


<?php $squads = $this->squads->get_squads(array('squad_status' => 1)); ?>
<?php if($squads): ?>
<?php foreach($squads as $squad): ?>
<li><span class="left"></span><span class="middle">
<?php echo anchor('roster/squad/' . $squad->squad_slug, $squad->squad_title); ?>
</span><span class="right"></span></li>
<?php endforeach; ?>
<?php endif; ?>

On pages after this, all the content disappears, its as if i'm not closing off the code correctly, i'm a rookie, please help :)

I beleive the problem may be the top line, but I don't know what i'm doing.. haha

Arcticwarrio
07-27-2012, 03:18 PM
how are you querying the database?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum