Loging in giving me trouble
<p>I have a table for Users and it has four fields, the user_id which auto increments, username, password, and user type. I want the user  type to be either an administrator of my system and a normal user who should have less privileges on the system. I want to create a login page for my system and the form action is checklogin.php  that should have sessions and checks if the person who has logged in is of Admin type,it should direct him to the Admin page and if the one who logged in is a normal user, it should direct him to the users page. I have tried to research but cant get a specific code. how can i do that friends?</p>
