传销树 [英] Tree FOR MLM

查看:118
本文介绍了传销树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在开发一个mlm网站.在这一个人的陪同下,我只能推荐三个人.我想为此做一棵树.请帮帮我.
我也想在数据库中插入值,我有一个包含左,中,右的下拉列表.如果我选择向左,则用户的详细信息将进入数据库,再次我选择中,则针对垂直赞助商的行将被更新:
我的赞助人表格是:

RefId(FK)int notnull;
LeftUserId int null;
MiddleUserId int null;
RightUserId int null;


请帮我,这是我第一次建立传销网站;

谢谢

Hi All,
I am developing a mlm website. in this one person can refer only three person under their id i want to make a tree for this please help me..
also i want to insert value in the databse i have a dropdown list containing left ,middle,right. if i select left then the details of the user will go in the database, again i select middle then the row for perticular sponsor will be updated :
my sponser table is :

RefId (FK)int notnull;
LeftUserId int null;
MiddleUserId int null;
RightUserId int null;


plz help me for this i am first time making MLM website;

Thanks

推荐答案

您的表结构看起来不适合您尝试的内容.

尝试阅读数据库设计以及如何在数据库中表示现实世界的概念.完成此操作并完成工作后,就可以解决前端部分.
Your table structure does not look suitable for what you are trying.

Try reading up on database design and how to represent real world concepts in a DB. Once you do that, and have a working design, you can tackle the front end part.


这篇关于传销树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆