php - organize nested mysql databse structure for Multilevel marketing system -


If someone has already created a nested database structure for multilevel marketing (MLM) system, please share your knowledge Because I'm stuck.

I have two options: First is the old way, table structure like ID, name, parent_id etc,

The second option is to sort out the data structure in MySQL, such as ID, name, LFT, RGT, etc.,

Well, the main thing is both professional and opposition, please advise me

Your database design appears appearing in the classic anti-SQL pattern, which relative tree is known by name. I strongly recommend you review - the beginning section around Slide 48.


Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

scala - Play Framework - how to bind form to a session field -