0

Hello everyone,

Actually, i'm working on a binary tree for building a dynamic orgnizational chart.

I have a concrete idea about that.

First, Create a binary tree.

Then, display it with GD library.

But it's the first time, i'm trying to do it. And i hope for your advice and guidance.

Thanks very much. Cheers.

2
Contributors
5
Replies
9
Views
7 Years
Discussion Span
Last Post by garcon1986
0

Hay Dude.
Could You Please Post Your GD Chart Structure Here.
So anyone Can Help You...

Sorry, I just created the table structure for the tree.

And i decide to use modifie preorder tree traversal alghorithm to build the it.

I haven't used GD library before, and i have to learn to use it from 0.

Here is my structure draft:

CREATE TABLE org(
	id int(11) NOT NULL AUTO_INCREMENT,
	parentid int(11) NOT NULL,
	name varchar(255),
	description varchar(255),
	lft int(11), 
	rgt int(11),
	PRIMARY KEY(id)
);

And i'm trying to use the algorithm to display it first. Does anyone have an idea about that?

Thanks a lot.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.