view records

hello everyone, i am very new in php programming and i really need your help. i created a simple program where i can save records and is also capable of login/logout and they can also register. i decided that on the Username they will enter their LastName. if they want to view their records they will just type their LastName on a textbox and press a View button. now my problem is that, how can i view the specific record of a user based on his/her Username which is their LastName? Hoping for your positive response and thank in advance!!! :slight_smile:

Using the last name as a username is not the best way forward. Ideally, you’ll want a unique username to prevent duplicates. Also, you haven’t mentioned password. If you’re storing personal data in a database, you’ll need to adhere to strict data protection laws ensuring that you are protecting the users data with something, lets say, a little more secure than a password. (Just a hint, a last name is personal data).

Sponsor our Newsletter | Privacy Policy | Terms of Service