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.

Recommended Answers

All 5 Replies

is there some can give me some guidance??

Thanks in advance.

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

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.

@above.

I am Suggest you that please read below Forum this is my self created forum and on Similar topic:
http://www.daniweb.com/forums/thread231905.html

Thanx.

Thanks a lot and i'm looking at your post.

i'm trying to understand it. Because i'm brand new here.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.