Jump to content

need help php dynamic menu


gentlemoves

Recommended Posts

Hi could you lend me your time?

 

I need Help please help me?

 

I need to make a php dynamic navigation menu with also a submenu

 

I did everything but it fails

 

also the dynamic menu needs to have a css active design so that it shows you in what form are you

 

i was trying multidimensional array

 

$navbars = array(
    
                'home' => array(
                                    'name' => 'Home',
                                    'href' => 'home1.php',
                                    'pagename' => 'home'
                ),
    
                'ristorante' => array(
                                    'name' => 'Ristorante',
                                    'href' => 'ris1.php',
                                    'pagename' => 'ristorante',
                                    
                ),
    
                'broker' => array(
                                    'name' => 'Broker',
                                    'href' => 'broker1.php',
                                    'pagename' => 'broker'
                )
);

 

it works but im having a hard time in doing the current state or the css active

 

thank you for your help if you could give me a example that would be great

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.