September 12th, 2012, 07:40 PM
Admin and non admin login
Im a newbie to dev Shed and thanks for having me. I have a issue. I have a login code but i need the code to when certain people login (admin) it sends then here and when ( non admin ) login it sends them there.
I have a users table with a column name "role" 1 as admin and 2 as non admin... Here is my whole login code. Each member has a id so id # 3,15,17 are admin and 1,2 through 31 are non admin . Can anyone help??? Im sure its easy but im still new to php.. THanks in advance.
I just need to know where and how to add the changes... Im pretty ignorant and still new to php. THis code was done by someone prior to me...
September 14th, 2012, 02:03 AM
Whatever you did to add your code didn't work.
What you need to do though is add an if statement with some conditions.
September 14th, 2012, 11:54 AM