Hello all,
I'm currently working on a small webapp where I work. I've created this for different departments. So, for example, let's say that: Marketing, Human Resources, and Sales uses it.
Right now, as it stands, I have 3 completely different directories for each dept:
http://mydomain.com/hr
http://mydomain.com/marketing
http://mydomain.com/sales
And each directory (department) has it's own MySQL database, with it's tables.
I have a few questions so that I can hopefully create this more efficiently:
1) Sometimes, I will have a user who will have access to two or more of the departments. For example, a user might have access to both HR and Marketing. I do not want to have this user create 2 different accounts. How can I "tie" this into one database?
2) Also, if I have a user who has access to both "areas", what would be a good way to 'direct' that user to change between both departments?
3) Finally, regarding the different directories, is there a more efficient way to do this? Each directory is essentially the same exact code, just with minor changes.
This is something that I've never done, so some help on creating this the 'right' way would be great. Especially while it's small, if I eventually expand this out to other departments.
Thanks!