amocanu Posted January 23, 2008 Share Posted January 23, 2008 I need to display some categories in tree form using php and javascript.Where can i find some help?My table looks like this CREATE TABLE `categories` ( `category_id` bigint(20) NOT NULL auto_increment, `parent_id` bigint(20) NOT NULL, `category_name` varchar(100) NOT NULL, `category_description` text NOT NULL, `category_order` bigint(20) NOT NULL, `active` enum('0','1') NOT NULL, PRIMARY KEY (`category_id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ; Link to comment Share on other sites More sharing options...
Guest PlanBForOpenOffice Posted January 30, 2008 Share Posted January 30, 2008 Hi there,if you want to see a static output, render the tree nodes into nested lists <ul>If you want nodes that are collapsible, like the folder tree in an explorer window, look for the Dojo Toolkit that includes a tree view object, where you can control all those things.Good luckK<o> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now