Multiple database with single application in php and codeigniter
- by ASD
I've developed a website in php codeigniter with the idea of using single physical instance of the code.
Here the logic i wanted to be is on login page user will chose the companyid which will be internally to the database name.
I want to know how to update the active_group variable according to the company id chosen by the user at the time of login.
Is there any way to do so.