RE: [PHP] Better way of doing this? (menu and submenus)
| From: | KermodeBear | Date: | Wed, 21 Jun 2006 16:59:23 +0000 |
| Subject: | RE: [PHP] Better way of doing this? (menu and submenus) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238480@lists.php.net to get a copy of this message | ||
Hello,
There is an EXCELLENT article at MySQL.com that talks about storing
hierarchal data, which is exactly what you want to do. The theory is not
MySQL specific, so you can apply it to any database system. It covers two
techniques, one of which Philip Thompson covered, and another that I prefer.
Well written and a recommended read for everyone.
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
-K. Bear