Lid |
|
Hello in het javascript van men menu heb ik het volgende staan:
startSubmenu("m_nieuws","gf_menu",100);
submenuItem("Archief","http://www.gamefactor.be","_self","gf_plain");
submenuItem("RSS-Feed","http://www.gamefactor.be","_self","gf_plain");
submenuItem("E-sports","http://www.gamefactor.be","_self","gf_plain");
endSubmenu("m_nieuws");
startSubmenu("m_previews","gf_menu",100);
submenuItem("Pc","http://www.gamefactor.be","_self","gf_plain");
submenuItem("Playstation","http://www.gamefactor.be","_self","gf_plain");
submenuItem("Xbox","http://www.gamefactor.be","_self","gf_plain");
submenuItem("Nintendo","http://www.gamefactor.be","_self","gf_plain");
endSubmenu("m_previews");
startSubmenu("m_reviews","gf_menu",100);
submenuItem("Pc","http://www.gamefactor.be","_self","gf_plain");
submenuItem("Playstation","http://www.gamefactor.be","_self","gf_plain");
submenuItem("Xbox","http://www.gamefactor.be","_self","gf_plain");
submenuItem("Nintendo","http://www.gamefactor.be","_self","gf_plain");
endSubmenu("m_reviews");
startSubmenu("m_nieuws","gf_menu",100); submenuItem("Archief","http://www.gamefactor.be","_self","gf_plain"); submenuItem("RSS-Feed","http://www.gamefactor.be","_self","gf_plain"); submenuItem("E-sports","http://www.gamefactor.be","_self","gf_plain"); endSubmenu("m_nieuws"); startSubmenu("m_previews","gf_menu",100); submenuItem("Pc","http://www.gamefactor.be","_self","gf_plain"); submenuItem("Playstation","http://www.gamefactor.be","_self","gf_plain"); submenuItem("Xbox","http://www.gamefactor.be","_self","gf_plain"); submenuItem("Nintendo","http://www.gamefactor.be","_self","gf_plain"); endSubmenu("m_previews"); startSubmenu("m_reviews","gf_menu",100); submenuItem("Pc","http://www.gamefactor.be","_self","gf_plain"); submenuItem("Playstation","http://www.gamefactor.be","_self","gf_plain"); submenuItem("Xbox","http://www.gamefactor.be","_self","gf_plain"); submenuItem("Nintendo","http://www.gamefactor.be","_self","gf_plain"); endSubmenu("m_reviews");
Hoe kan ik nu met mysql en php zetten dat hij dit uit een database moet halen en herhalen dus zoiets in de aard:
startSubmenu("uit db halen","gf_menu",100);
submenuItem("uit db halen","uit db halen","_self","gf_plain");
submenuItem("uit db halen","uit db halen","_self","gf_plain");
submenuItem("uit db halen","uit db halen","_self","gf_plain");
endSubmenu("uit db halen");
startSubmenu("uit db halen","gf_menu",100); submenuItem("uit db halen","uit db halen","_self","gf_plain"); submenuItem("uit db halen","uit db halen","_self","gf_plain"); submenuItem("uit db halen","uit db halen","_self","gf_plain"); endSubmenu("uit db halen");
En dit altijd blijven herhalen tot als alle submenus uit de datbase zijn gehaald...
|