How would you make it so that a user is able to check their account information that is saved in the database and edit it? Let's say a user clicks on their account info page, it would display something like:
Username [abc]
Email: [[email protected]]
Age: [20]
[Save Button]
When the user loads up the page, they would be able to see their information for those specified fields from the database. However, all this information would be in editable field that could be re-typed and saved.
So how would I go about doing this? What would this look like in PHP? I do not know how to display data from the databse onto a page, and I would imagine I would ned to do that. Also, does this data (that is being displayed on the page) need to be sanitized like how it was when the account was created?
There are many ways to approach this and unless necessary theres no need to reinvent the wheel.
A good place to start would be looking at the many open source projects that are out there such as:
Alternativley frameworks such as Laravel, Yii2 and Symfony are a good environment to build these sort of systems in. With Laravel for example almost everything is configured for you out of the box. The authentication configuration file is located at config/auth.php, which contains several well documented options for tweaking the behavior of the authentication services.
After looking at these if you did decide you wanted to start from the ground up with your own design then there are many good in depth tutorials freely available online such as http://www.ineedtutorials.com/code/php/complete-advanced-login-member-system-php-tutorial
I hope my reply helps.