simple php_mysql_based_menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
drgoettel
Beginner
Beginner
Posts: 1
Joined: Thu Feb 19, 2009 3:15 pm

simple php_mysql_based_menu

Post by drgoettel »

Hello,
I'm using a Plain Text Horizontal Style DHTML Menu Bar. Using extras folder, I have managed to build the menu from mysql database. Basically I modify "mm_menus" table in order to build the main menu (first level):

Full Texts menuid projectid styleid name alwaysvisible orientation overflow
1 1 1 item1 1 1 NULL
2 1 1 item2 NULL NULL NULL
3 1 1 item3 NULL NULL NULL
4 1 1 item4 NULL NULL NULL
5 1 1 item5 NULL NULL NULL
6 1 1 item6 NULL NULL NULL
7 1 1 item7 NULL NULL
8 1 1 item8 NULL NULL NULL
9 1 1 item9 NULL NULL NULL

Getting a first level menu with this items:
item1 item2 item3 item4 item5 item6 item7 item8 item9

Then I modify "mm_items" table in database in order to build the second level: for example, if I want a "son" of item2 I insert in mm_items something like this:
itemid menuid text url showmenu
10 2 item10 http://milonic.com NULL

It works great!! now item10 is a son of item2.

The problem is if I want a son for item10. I do what it's supossed to be the correct having this structure in mind. I create an entry into the database like this:
itemid menuid text url showmenu
11 10 item11 http://milonic.com item11

But this level doesn't come up!!
Anybody knows why I can't add a third level?
Any help would be really appreciated.

Best regards,
Andrés
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: simple php_mysql_based_menu

Post by Andy »

Hi,

Send over a data dump (with item 10 added) and I'll take a look.

-- Andy
Post Reply