#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Admin and non admin login


    Hi,
    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...



    Thank you...
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,301
    Rep Power
    7170
    Whatever you did to add your code didn't work.

    What you need to do though is add an if statement with some conditions.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0
    thanks got it..

IMN logo majestic logo threadwatch logo seochat tools logo