Click here to Skip to main content
16,018,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi there i want a functionality that whenever a new user logins to system ,he should be able to view his data not other data ,in his login ,how to achieve this



pls helppppp...................................
Posted
Updated 3-Nov-15 18:38pm
v2
Comments
Gyaneswar kumar 4-Nov-15 0:49am    
please share your requirement in details.

This could be achieve by simply mapping user with his details from back-end and then show it on front end means just do the mapping at database level and enjoy the coding..
Tarun Kumar 4-Nov-15 1:24am    
i mean to say whenever any user login in to the app.

He can create his data only i mean by table for example.

so how can i create a new Table related with person each time, related with person details.

just like gmail and facebook functionality.

in gmail and facebook the details related to person is only shown .



just like that

1 solution

This is your business logic !
You know the actual user, you know the data.
You need a way to match both or build a link between them.

With out details, it will be complicated to give you more advice.

[Update]
Your problem is that you need to learn how SQL works, and an answer will not do it.
Your question have the same basic solution that how to have a link between an invoice header and its details.
Specifically, you need to learn how to set a relation between 2 tables.
 
Share this answer
 
v2
Comments
Tarun Kumar 4-Nov-15 1:24am    
i mean to say whenever any user login in to the app.
He can create his data only i mean by table for example.
so how can i create a new Table related with person each time, related with person details.

just like gmail and facebook functionality.

in gmail and facebook
the details related to person is only shown .



just like that
Patrice T 4-Nov-15 1:31am    
From your comment, you need to learn how SQL is working.
Krunal Rohit 4-Nov-15 1:46am    
And C# too.

-KR
Patrice T 4-Nov-15 1:50am    
Probably :)
but the question is related to SQL only.
Patrice T 4-Nov-15 3:43am    
Ok, you lucky to know al theses languages.
But, Your question and your previous comment tell us that you don't know the basics of SQL.

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