pt2002 wrote:
Hi
I have a table like this
id, pid, name. When a item has no parent, pid = 0. There is no limit in
depth.
1, 0, Test 1
2, 1, Test 1.1
3, 1, Test 1.2
4, 2, Test 1.1.1
5, 1, Test 1.3
6, 3, Test 1.2.1
I need to read this table and return an array that represents the tree.
Maybe using a
Hi
I have a table like this
id, pid, name. When a item has no parent, pid = 0. There is no limit in
depth.
1, 0, Test 1
2, 1, Test 1.1
3, 1, Test 1.2
4, 2, Test 1.1.1
5, 1, Test 1.3
6, 3, Test 1.2.1
I need to read this table and return an array that represents the tree.
Maybe using a recursive fu
2 matches
Mail list logo