Php unlimited classification

Source: Internet
Author: User
Php unlimited classification db design: CREATETABLEIFNOTEXISTS 'test' ('id' INT (1) NOTNULLAUTO_INCREMENT, 'path' VARCHAR (255) NOTNULL php unlimited classification
Db design:
Create table if not exists 'test' ('id' INT (1) not null AUTO_INCREMENT, 'path' VARCHAR (255) not null, 'name' VARCHAR (255) not null, primary key ('id') ENGINE = myisam default char set = 'utf8'; insert into 'test' VALUES ('', '0', 'Company '), ('', '0-1', 'Department 1'), ('', '0-2', 'Department 2 '),('', '0-3', 'Department 3'), ('', '0-1-1 ', 'Group 1'), ('', '0-1-2 ', 'group 2'), ('', '0-2-1', 'group 3'), ('', '0-2-2 ', 'group 4 ');


Php code implementation:
 {$indent}{$row['name']}";}echo "{$option}";


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.