I have the following table :
id name lft rgt level
--- ------------------------- ---- ---- -----
1 company name 1 16 0
2 HR 2 3 1
3 Superwiser 4 9 1
4 Associates 5 6 2
5 test 10 13 1
6 test2 11 12 2
Using this database I want to display the tree structure in ul li tag. But not getting this table. I want to display like this:
1. Company Name
|--:Hr
|--:Superwiser
|--:Associates
|--:test
|--:test2
How can I fire specific query for this and how to display it in ul li tag. Thanks in advance.
class Category
{
}
?>
Use this library