So I want to add something to my code, an admin type of thing. In the table i added a admin column, it’s type enum with 0 and 1, and the set is as defined 0. I want it so that it checks if a user is admin (1) and when they log in it says You are now logged in as admin$username, else is just gives the normal 'You are now logged in as $username
my script: http://pastebin.com/yy8f7PjQ
any help? I want it to check if $user is also admin then give them the message when they press log in