How to connect registration?

I created registration, and how to connect, I do not know.)) Help, please thanks in advance.

Answer 1, Authority 100%

What do you mean to connect? Create a table with the columns that you need (id, nickname, name, date reg. Etc.). Then on the registration page, you make connections to this table, forms, enter information into it. Then you can create a login page or a block where the query is sent to the database, on the authenticity of those. Data that entered the user. And that’s all.

Answer 2

The project should have a data client database, you can process the registration by the HTML and the POST request to the file with logic, and from there it is already spinning and create a session if the result is the result of logic-1, or if 0 Send error message