I have a database 'practice'.I`m trying to make database that allows users to Login and submit data in forms.
The admin adds the username and the password for few users.The users then login using the password and username.
Now Since the admin adds users his functions must be different from the users and a different page is to be loaded for him so to identify admin.I have added the following admin column in the table.
authenticate table
username | password | admin
----------------------------
admin | 7821y34n | 1
007 | 435432 | 0
admin is of type tinyint if 1 then admin if 0 then user
Is this the way to create an authenticate table?