This might be a simple question but I have a login page where I want users to authenticate against LDAP and that's working fine.
I created a mysql database where I created a table with the user's logon name and would like a check after the successful logon to verify in my DB that the user trying to authenticate is part of the Administrator group (defined in my database table).
If this is valid then redirect them to url1 and if not redirect them to URL2. At this point I just need help with the SQL query portion as im not too familiar with it.
Localhost DB name=imc.directory.tool Table name=tbl_staff ------------------------------------------------ | ID | username | group | ------------------------------------------------ | 1 | username1 | Administrator | ------------------------------------------------ | 2 | username2 | Guest | ------------------------------------------------ | 3 | username3 | Guest | ------------------------------------------------