Creating tree using table?
| From: | E K L | Date: | Fri, 23 Mar 2001 08:29:10 +0000 |
| Subject: | Creating tree using table? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45255@lists.php.net to get a copy of this message | ||
Hi all,
Currently, i'm trying to write a program which is related to tree manipulation. Meaning that, i'll search the tree to get level or count how many child exist for particular parent, for example.
Initially i planned to use table to represent all kind of datas that are parent, left child and right child. However, i still face problem in calculating the level of the tree. So, can any one gives me an idea on how to manipulate the table so that i will be able to count the level?
Your prompt reply is much appreciated. Thanks....
E K
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.