0
How can you create a database driven menu in php. The vertical menu content should depend on the horizontal.
Assuming you have three tables: 
•   Module which have the data to be displayed on the horizontal menu
•   Sub Module which have the sub modules of the module above
•   Menu which have the screens in each sub module
2
Contributors
1
Reply
4
Views
3 Years
Discussion Span
Last Post by diafol
0

ARe you talking about a dropdown menu?

If so they usually have the structure:

<ul id="nav">
    <li>parent1
        <ul>
            <li>child1.1</li>
            <li>child1.2</li>
        </ul>    
    </li>
    <li>parent2
        <ul>
            <li>child2.1</li>
            <li>child2.2
                <ul>
                    <li>grandchild2.2.1</li>
                    <li>grandchild2.2.2</li>
                    <li>grandchild2.2.3</li>
                    <li>grandchild2.2.4</li>
                </ul>    
            </li>
        </ul>    
    </li>
    <li>parent3
        <ul>
            <li>child3.1</li>
            <li>child3.2</li>
        </ul>    
    </li>
</ul>

If you show your table structures and any SQL querieis that you've tried.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.