Creating DHTML/Javascript Tree from Mysql Data uing PHP

  Download Code
Downloads:5179 Bookmark this code Bookmark and Share
Rank : 3.25/5
Rated by : 12 user(s)
Developer:Andrew R  |   13 submission(s)
Date Uploaded:March 25,2008
Level:Intermediate
Size: 2.26 KB
Category:PHP -> Miscellaneous
Developer Says:

This sample PHP code creates a Tree from records stored in mysql database. The database has 2 tables namely categories and products, products are grouped into different categories. The tree is shown in the browser with option to expand & collapse.The database export is included with sample products and categories

Click Here to view online demo


User Reviews
Nurul
[08-Jan-2009]
#1

This code is good, simple and easy to understand. but when i change the code accordingly to my database table..why is it not functioning????

Nurul
[22-Jan-2009]
#2

Ok, the coding is fuctioning well. just only if i use the int type data. like the example used cid. but my data example is like 'model' = "FE-100 (FORTIMAIL)". model is also a table primary key. then when it pass the value to the java script. the tree doesn't work at all. does anyone know the reason?? tell me plz... thanks...

krikri
[03-Feb-2009]
#3

Hi all, I'm interesting for a tree client in flex and (php, mysql) ; Please can you help me.. Thanks krikri

research
[14-Feb-2009]
#4

thanks for this simple bute very good code !!!! you simple the best

kensiro
[31-Jul-2008]
#5

verygood

shaheer
[21-Nov-2008]
#6

Excellent

Nurul
[28-Apr-2009]
#7

Hi, I have successfully change these codes. I just added an id to the model. and it works fine. but the problem is, why is it keep going up(beginning of the page) every time expand & collapse links pressed? Is there any way to fix this? Please do reply. Thanks.

Leave a Comment
Age (Required, will not be shown)
Name
Email (Required, will not be shown)
Website (Optional, starting with http://)
 
Rate this code
Poor   1 2 3 4 5   Outstanding
Are you human ?

Enter the code shown above