设计一个像创建群组页面这样的Facebook [英] designing a facebook like create group page
本文介绍了设计一个像创建群组页面这样的Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在ASP中开发一个社交网站时,我有一个创建组页面的选项,很困惑当用户单击创建组按钮时要保存在数据库中的内容,即如何存储组成员…… ..plz help
Am developing a social networking site in ASP, i hv an option for create group page,am confused what to keep in the database when the user clicks on create group button i.e how to store the group members........plz help
推荐答案
为此,您必须在一个表中将MemberId
(用户ID)与GroupId
相对.
当用户点击创建群组选项时,您将要求他/她选择他现有的朋友添加到群组中.
当他/她提交表单时,您将所有选定朋友的UserID
作为MemberID
存储在Groups
表中,与该组的GroupID
相对,该组可以是一个自动生成"字段.
For this, you have to keep theMemberId
(user ids) against theGroupId
in one table.
When user will click on Create Group option, you will be asking him/her to select his existing friends to add in the Group.
When he/she submits the form, then you will store theUserID
of all the selected friends as theMemberID
in theGroups
table against theGroupID
of that Group, which can be one Autogenerated field.
这篇关于设计一个像创建群组页面这样的Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文