Need Help with PHP Coding

Need help with PHP coding please, i have search in several forum and googling but not find the answer.

My point is :

PHP connect to MySql database.
The menu have 4 till 6 sub menu level.
the content div only change if the link was clicked.

the procedure is like this
If menu in content A click will change (Content B, Content C, Content D, Content E)
If menu in content B click will change (Content C, Content D, Content E)
If menu in content C click will change (Content D, Content E)
If menu in content D click will change (Content E)

associated with the menu as mentioned on the picture the content change the div only not the whole pages, and perhaps the url address will be like this
(index.php?id=1&Bid=2&Cid=1&Did=5&Eid=3)
the “&XXXid” indicate that the content has been clicked.

Many appreciated for the support and help for my question.

Thanks…

Exactly!

If anything, incorporate a main menu system which collapses down into options.

So, the menu (if you code semantically; if not I’d recommend learning good HTML practise before continuing otherwise your applications will suffer) should be as a list:

<ul class="Menu">
<li><a href="/One">Item 1</a></li>
<li><a href="/Two">Item 2</a></li>
<li><a href="/Three">Item 3</a></li>
<li><a href="/Four">Item 4</a></li>
</ul>

If the user clicks item 2, for example, then that submenu is revealed. I’d recommend first building this functionality in PHP (so a click reloads the page with a new menu parameter) and then incorporating a JavaScript solution as well, so that a click leads to an automatic revealing of further options. That way users without JavaScript will still be able to use your menu.

This is what it’d look like when item 2 is clicked:


<ul class="Menu">
     <li>
        <a href="/One">Item 1</a>
    </li>
    <li>
        <a href="/Two">Item 2</a>
        <ul>
            <li>
                <a href="/Two/One">Item 2.1</a>
            </li>
            <li>
                <a href="/Two/Two">Item 2.2</a>
            </li>
            <li>
                <a href="/Two/Three">Item 2.3</a>
            </li>
        </ul>
    </li>
     <li>
        <a href="/Three">Item 3</a>
    </li>
     <li>
        <a href="/Four">Item 4</a>
    </li>
</ul>

That’s what I’d say is the best approach. I would say that your menu shouldn’t contain more than two levels - if I came across a 6-tier menu I really wouldn’t bother trying to use the site.

I only see sub-menus, where’s the actual content going to go?

Is that the actual design?

If I were a user, that would confuse the HELL out of me - and I probably would just end up not using your site at all. Why not keep it simple!?

Just think about the 3-click rule.
This might be interesting to you: http://www.smashingmagazine.com/2007/10/09/30-usability-issues-to-be-aware-of/