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
Member Avatar for diafol

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.