My site was 3 (or more) levels: in the botton level, the login 'A Doe' must view the records of all the employees of the Sector A of Company A and the login 'B Doe' must view the records of all the emplyees of the Sector B of Company A; in the intermediate level, the login 'C Doe' must view the records of all employees of Company A...; in the top level, the login 'D Doe' must view all records of all companies.
For example:
Table fields:
company_id
department_id
sub-department_id
sub-sub-department_id
...
The top level (CEO) login must access ALL table records;
The level 2 login must access only records of one COMPANY_ID;
The level 3 login must access only records of one DEPARTMENT_ID;
The level 4 login must access only records of one SUB-DEPARTMENT_ID;
...
How build this using PHPR ?
Tks again...