Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2009
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Unhappy Dropdown navigation bar from database

    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 Code:
                   <?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

  • #2
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    723
    Thanks
    20
    Thanked 84 Times in 84 Posts
    how are you querying the database?


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •