Plz help me?

Discussion in 'PHP' started by jafar, Sep 13, 2006.

  1. #1
    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!
     
    jafar, Sep 13, 2006 IP
  2. Allan

    Allan Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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
     
    Allan, Sep 13, 2006 IP
  3. jafar

    jafar Active Member

    Messages:
    248
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    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?
     
    jafar, Sep 14, 2006 IP