Jump to content

Archived

This topic is now archived and is closed to further replies.

wobblemonster

Suggestions for Data-driven Tree Script or Example?

Recommended Posts

PHP Newbie: I want to represent some data in a tree structure and have the ability to update the data: add, amend or delete nodes at any level.

Can anyone point me towards a good script or example that achieves this?  I'm pretty sure that I could figure out how to render the tree in html by myself, but integrating the edit facility has me stuck.

The tree would be backed by a single database table containing the all the nodes, e.g.

[table]
[tr][td][b]NodeId[/b][/td][td]  int[/td][td]  identity[/td][/tr]
[tr][td][b]Name[/b][/td][td]  varchar[/td][td][/td][/tr]
[tr][td][b]ParentId[/b][/td][td]  int[/td][td]  default(0)[/td][/tr]
[/table]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.