php - Table structure for menus in mySQL -


I want advice for table structure.

I need to dynamically create menus.

There will be more than 3 menu.

Some menus will have multi-level structures.

What is the best way to clarify menu tables?

  1. All the menus are in a table
  2. Each table should have a table
  3. any other ??

Please kindly contact for the dynamically generated menu for your experience or general behavior.

Believing your menu tree is not very big, the so-called adjacent list will be the simplest option


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -