I want to use this example of dhtml menu by reading it's data from mysql. my table fields are: cat_id cat_level cat_leftid cat_rightid and cat_title i must generate javascript code like these: Menu1=new Array("Home","http://www.dynamicdrive.com","",0,20,138); Menu2=new Array("News","blank.htm","",2); Menu2_1=new Array("General","blank.htm","",5,20,150); Menu2_1_1=new Array("CNN","http://www.cnn.com","",0,20,150); Menu2_1_2=new Array("ABCNews","http://www.abcnews.com","",0); Menu2_1_3=new Array("MSNBC","http://www.msnbc.com","",0); Menu2_1_4=new Array("CBSNews","http://www.cbsnews.com","",0); Menu2_1_5=new Array("Canadian News","http://news.bbc.co.uk","",2); Menu2_1_5_1=new Array("Vancouver Sun","http://www.vancouversun.com","",0,20,150); Menu2_1_5_2=new Array("CTV News","http://www.ctvnews.com","",0); Menu2_2=new Array("Technology","blank.htm","",3); Menu2_2_1=new Array("TechWeb","http://www.techweb.com","",0,20,200); Menu2_2_2=new Array("News.com","http://www.news.com","",0); Menu2_2_3=new Array("Wired News","http://www.wired.com","",0); Code (markup): from my bank. How i can do that? plz help me!
Umm, how good is your php programming, if you want to learn php, it is best to download some open source cms system and see how they code user interface like this
Thanks for your answer. My php programming is not very bad, can you introduce me an open source cms that use this method of storing data in database and use this dhtml menu?