Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,673 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,172 people online right now. Registration is fast and FREE... Join Now!




Displaying Tree

 
Reply to this topicStart new topic

Displaying Tree, Displaying Tree Structure using php mysql

debashrees
post 8 Aug, 2007 - 02:07 AM
Post #1


New D.I.C Head

*
Joined: 8 Aug, 2007
Posts: 1


My Contributions


hi,
i want to display the organization tree( in the same wayof windows explorer tree structure) using php.
I have a table called Org_Tree in mysql, its structure is given below
+-----------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------+-------+
| Org_Node_Id | varchar(6) | | PRI | | |
| Org_Type_Cd | char(3) | YES | | NULL | |
| Org_Node_Desc | varchar(100) | YES | | NULL | |
| Org_Par_Node_Id | varchar(6) | YES | | NULL | |
+-----------------+--------------+------+-----+---------+-------+
The root has the Org_Par_Node_Id NULL.
Suggest me.

User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 8 Aug, 2007 - 03:57 AM
Post #2


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,933



Thanked 118 times

Dream Kudos: 8525

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Have you written any code in an attempt to do this? If so post it here (between [ code ] tags, see image below) and the error/problem you're having and someone will be more than happy to help.

If you have made no attempt then I suggest you go here and so some research first (we're not going to just hand you the code to do your homework/project, you learn nothing that way smile.gif )

Code Tags:
Attached Image

This post has been edited by PsychoCoder: 8 Aug, 2007 - 03:57 AM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:14AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month