login  Naam:   Wachtwoord: 
Registreer je!
 Forum

[JS] Menu php

Offline Drieske - 10/05/2006 13:55
Avatar van DrieskeLid Hello in het javascript van men menu heb ik het volgende staan:

  1. startSubmenu("m_nieuws","gf_menu",100);
  2. submenuItem("Archief","http://www.gamefactor.be","_self","gf_plain");
  3. submenuItem("RSS-Feed","http://www.gamefactor.be","_self","gf_plain");
  4. submenuItem("E-sports","http://www.gamefactor.be","_self","gf_plain");
  5. endSubmenu("m_nieuws");
  6.  
  7.  
  8. startSubmenu("m_previews","gf_menu",100);
  9. submenuItem("Pc","http://www.gamefactor.be","_self","gf_plain");
  10. submenuItem("Playstation","http://www.gamefactor.be","_self","gf_plain");
  11. submenuItem("Xbox","http://www.gamefactor.be","_self","gf_plain");
  12. submenuItem("Nintendo","http://www.gamefactor.be","_self","gf_plain");
  13. endSubmenu("m_previews");
  14.  
  15. startSubmenu("m_reviews","gf_menu",100);
  16. submenuItem("Pc","http://www.gamefactor.be","_self","gf_plain");
  17. submenuItem("Playstation","http://www.gamefactor.be","_self","gf_plain");
  18. submenuItem("Xbox","http://www.gamefactor.be","_self","gf_plain");
  19. submenuItem("Nintendo","http://www.gamefactor.be","_self","gf_plain");
  20. 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:

  1. startSubmenu("uit db halen","gf_menu",100);
  2. submenuItem("uit db halen","uit db halen","_self","gf_plain");
  3. submenuItem("uit db halen","uit db halen","_self","gf_plain");
  4. submenuItem("uit db halen","uit db halen","_self","gf_plain");
  5. endSubmenu("uit db halen");


En dit altijd blijven herhalen tot als alle submenus uit de datbase zijn gehaald...

0 antwoorden

Gesponsorde links
Er zijn nog geen reacties op dit bericht.
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.211s