Thank you for the quick reply.
I am aware of the SELECT statement and I am able to retrieve data in the actual database, but I'm having problems with the logic of how to put the data from the database into my form.
For example, I have a database with user_id, first_name, last_name, password, email, address, address1, phone, etc.
And I have a form for all theses fields. When the user registeres, they enter the first_name, last_name, email and password. But once they login, I'd like them to be able to edit all fields and enter the address, phone, etc. By Default, I'm looking to populate the form with the data that is already in the database but I have no clue how to start. This way, the form is already populated and they only need to enter the data that needs to be changed.