Atom.CMS icon indicating copy to clipboard operation
Atom.CMS copied to clipboard

Part 13: Navigation shows only the one i have selected

Open ashotosipyan opened this issue 9 years ago • 2 comments

while($nav = mysqli_fetch_assoc($result)) { ?>

                <li <?php if($pageId == $nav['page_id']){echo 'class="active"';} ?> >
                    <a class="page-scroll hvr-underline-from-center"  href="?page=<?php echo $nav['page_id']; ?>">
                    <?php echo $nav['page_name']; ?></a>
                </li>

           <?php } ?>

Here is my code, and i can see my navigation pages only by writing page number in search bar, can you help me?

ashotosipyan avatar Dec 18 '15 10:12 ashotosipyan

I'll need the hole code to help you... That part just outputs what you have fetch, so I need the query to the server to understand all your code.

creptor avatar Dec 18 '15 16:12 creptor

An image of your site would be helpful too

creptor avatar Dec 18 '15 16:12 creptor