This is my scenario and wanted to hear some other thoughts or recommendations.
So i have 2 users Branch Registrar and Branch Principal.
So what i am thinking is for example I’m a registrar of branch a i should only manipulate data of branch a and view data of branch a. This goes for Branch b and c also with Principal user.
What would be a good way to perform/do this. So far my idea is now i have pages that are mixed from the 3 branches. Lets say Total pages i have now is 3 my planed course of action is to copy those 3 and create 3 pages exactly for each branch making a total of 9. and it will be such a nuisance to create many replicas of pages. Would appreciate any methods on how should i do this task efficiently and quicker. New with this and hope you guys understand.
EDIT: I am using php and mysql(not mysqli for the moment because i want to master mysql first)
In my database i have the field “Branchname” so i might be able to use that. What i am searching for is a efficient way that the page would know if the user is on a specific branch. would Session suffice?
$_SESSION['branch'] = $get->Branchname;
Assuming you are using a database, you may add an authorization field in your table for your registrars and principals, which shall contain the primary key value for the branch which they can manipulate. So when you show data, or allow to modify it, your selection criteria is based on the authorization field.
If you could specify what technology you are using, and some code, maybe I can explain better.