Dynamic menu (PHP)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Googolplex
Super Advanced
Super Advanced
Posts: 50
Joined: Tue Nov 05, 2002 9:09 pm

Dynamic menu (PHP)

Post by Googolplex »

Could anyone show me a simple example of a PHP-driven menu ?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I'm not sure I understand, but Milonic.com is a php site. In view source you can see the menu_data.js file is actually menu_data.php. Is that what you mean? And, here's a forum discussion about php. http://milonic.com/forum/viewtopic. ... hlight=php

and this one is about generating menu data with mysql and php http://milonic.com/forum/viewtopic. ... hlight=php

Ruth
Googolplex
Super Advanced
Super Advanced
Posts: 50
Joined: Tue Nov 05, 2002 9:09 pm

Post by Googolplex »

Yes, the second link is what I am talking about:

But why do I need to put any PHP in the main page, isn't it enough to rename nemu_data.js to menu_data.php and put the PHP code in there ?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I'm sorry, I don't know anything about php, I just remembered reading some threads about it and posted them for you.
Ruth
Googolplex
Super Advanced
Super Advanced
Posts: 50
Joined: Tue Nov 05, 2002 9:09 pm

Post by Googolplex »

Ok, thanks :)
Post Reply