I want to create a multilevel register/login system with 2 types of users: admin and normal users. I have read some articles and tutorials, but I still have some questions. I know that I need to have a table with the following columns: username, password and type (0 - normal user, 1 - admin) and when a user tries to login, he will be redirected to a certain page based on the type.
Now, the process of registration for a normal user is quite straightforward, but my question is, how do you register an admin user?
Do you add a admin user directly in the database using sql? Do you create a special PHP page for this?
Like I said, I have read some tutorials but I didn't found an answer to this question.
Thanks in advance!