We have 2 admin pages. one is for admin and another is for branches. We have 16 branches in our company. I have put 16 branches as different folder. One is for admin section. If I login www.xxx.com it asks login page. When admin enters it should go to admin page only. And if any branches try to login www.xxx.com, den it should redirect to their respective branches folders. Please tell me how i do dat in php/mysql.

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
If this question can be reworded to fit the rules in the help center, please edit the question.

You can classify the users according to admin or branch. First , you will need to store the branch for every users who can login in the site in the database. When the user login takes place, retrieve the branch from the row and redirect the his corresponding branch.