Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After register new account, can I know how to make code retrieve data for particular user that was log in, not retrieve all data from database. It mean like register new account, then log in, after that have a new account and the new account doesn't have data from other user, the account was new and only have the data after self user input the data.

What I have tried:

I really don't know how to create the code for this, can anyone help me, Thank you...
Posted
Updated 31-May-22 18:59pm

1 solution

We can't tell you exactly what to do, we have no access to your DB or it's design - and normally such data access is done in the server code rather than the browser anyway.

But you'll want to use a WHERE clause on your SQL SELECT COMMAND to restrict what data is retrieved:
SQL
SELECT Column1, Column2 FROM MyTable WHERE UserID = IdValue
 
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