tblUsers
ID | username | password
---+----------+-----
1 | admin | admin
2 | test | test
tblDescription
descId | userID | description
-------+--------+-------------
1 | 2 | this is for the test description
2 | 1 | this is for the admin description
I have tried to build my database a little bit up.
I have created two different tables in my SQL database (tblUsers
and tblDescription
) and of course every user has an id
But what I want to do is when a user logs in ,
it will check the id of the user who is logged in and display the description.
I've been able to create the login with forms authentication in c# but I can't figure out how to get the description of the user?
I've done a couple research as I'm new to database but I still couldn't get it
Can I get some help? Thanks in advance.