如何为不同的用户进行不同的查询 [英] how to make differnet query for differnt user

查看:70
本文介绍了如何为不同的用户进行不同的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个项目。现在我想要一个用户登录然后它转到索引页面。索引页面有一个标签我的任务当他点击它。它将显示任务ko那个人他也可以上传picture.now另一个用户登录同样会发生在他身上。每个用户都有她的任务。当管理员登录它将显示所有任务......

我该怎么办? ?

i doing a project.now i want when a user login then it went to index page.on index page there is a tab my task when he click on it.it will show the task ko that person and he can also upload picture.now another user login same will happen to him.each user has her on task.when admin login it will show all the task......
how can i do this????

推荐答案

您可以通过登录凭据轻松识别用户。我假设您必须在网格视图等容器中显示任务,它可以帮助您上传图片并保存。在绑定网格视图时,您必须根据网络侧或数据库端的登录情况修改不同用户的网格视图数据源。
You can easily identify users by login credentials. I assume you must be displaying tasks in some container like grid view etc, it can help you to upload pictures and save. While binding grid view you juts have to modify grid view data source for different users based on their login either on web side or DB side.


这篇关于如何为不同的用户进行不同的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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