How to Use php to implement online/offline Identification

Source: Internet
Author: User
A beginner, Tom, is developing A rebate system. The core of this system is that user A can sell the product on his own or develop offline abc and benefit from offline sales. How can we achieve the online/offline relationship between A and abc? Yes. Thank you. A beginner, Tom, is developing a rebate system. The core of this system is that user A can sell and deprecate User a/B/c on his own, and benefit from offline sales. How can we achieve the upper/lower line relationship between A and a/B/c? Yes. Thank you.

Reply content:

A beginner, Tom, is developing a rebate system. The core of this system is that user A can sell and deprecate User a/B/c on his own, and benefit from offline sales. How can we achieve the upper/lower line relationship between A and a/B/c? Yes. Thank you.

Search for "infinitus classification ".

Design a parent_id in the database. You can use parent_id to query the deprecation status of the user.

Infinitus
Id name pid Table Design

This is an infinite classification, just like everyone's answer. You refer to the http://www.imooc.com/learn/201

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.