设计一个像创建群组页面这样的Facebook [英] designing a facebook like create group page

查看:67
本文介绍了设计一个像创建群组页面这样的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 the MemberId (user ids) against the GroupId 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 the UserID of all the selected friends as the MemberID in the Groups table against the GroupID of that Group, which can be one Autogenerated field.


这篇关于设计一个像创建群组页面这样的Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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