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
https://forums.phpfreaks.com/topic/284482-need-help-php-dynamic-menu/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.