Click here to Skip to main content
16,005,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 )
Posted
Updated 15-Jun-10 22:30pm
v2
Comments
R. Giskard Reventlov 16-Jun-10 3:44am    
So what's your question?
Sandeep Mewara 16-Jun-10 3:53am    
So what is your question?

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900