Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create dynamic organization/pyramid chart, help pls!

Status
Not open for further replies.
I used php & mysql

The data are from mysql, I hope someone can help me how to do this chart with that combination

Am I in wrong forum?
 
The MySQL portion would be a table with columns for

id - a unique id number for each row
name - arbitrary name for the "thing"
parentId - the id of the parent "thing"


So then each row would contain information for each "thing" and you'd be able to work out your tree structure based on what was a parent of what.


As far as actually generating the graphical representation of that data - it's an entirely different matter and nothing to do with MySQL.

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Ham and Jam - British & Commonwealth forces mod for Half Life 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top