信息显示 [英] Messages display

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

问题描述

我创建了一个表,其中包含用户ID,名称,登录时间和注销时间以及已归档的状态

因此,当新用户登录(单击登录按钮)后,它将被插入数据库,并且状态字段将被设置为1;当他单击注销按钮时,状态字段将被设置为零.并且,如果例如2002的用户标识已经在数据库中并且尚未登录,那么当他登录时,只有状态字段将从0更改为1.

直到我完成编码和设计

因此,现在我需要从表中获取用户ID和名称至表单,并显示一些弹出消息,其状态为1,即新用户登录系统时. (已登录用户的通知消息)具有名称的用户标识已登录到系统中

所以我的问题是我想以某种弹出消息(在数据库表中状态为1的用户ID和密码)显示所有登录到系统的用户.

解决方案

<您对我的问题不清楚. :sigh:

venkataramreddy写道:

所以我的问题是我想在某些弹出消息中显示所有登录到系统的用户(用户ID和密码,数据库表中的status = 1)


如果您只想要这个,
您可以从数据库中获取值,创建状态为1的所有用户的字符串,并将其显示在MessageBox中.

但这似乎不是显示所有已登录用户的好主意.
试想一下,当成千上万的用户登录时的情况.

如果这不是您想要的,那么您需要清楚地说明您的问题.


I have created one table which includes user id,name, login time and logout time and status filed

So when a new user logged(clicks on login button) in then it will be inserted into the database and status field will be set to 1 and when he clicks on logout button then status field will be set to zero. And if the user id for example 2002 is already their in the database and not logged in,and when he logged in then only status field will change from 0 to 1.

Till This i have finished with coding and designing

So Now i need to fetch the user id and name from the table to the form and display some popup message whose status is 1 that is when new user logged in to system. (Notification message to the user already logged in) that user id with name is logged into the system

So my Question is i want to display all the users who are logged into the system in some popup message(User Id and password whose status=1 in the database table )

解决方案

Your question is not clear to me. :sigh:

venkataramreddy wrote:

So my Question is i want to display all the users who are logged into the system in some popup message(User Id and password whose status=1 in the database table )


If you want just this,
You can fetch values from database, create a string of all users whose status is 1 and display it in a MessageBox.

But this doesn''t seems to be good idea of showing all logged in users.
Just imagine a case when 1000s of users are logged in.

If this is not what you are looking for, then you need to explain your question clearly.


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

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