title: Load different database depend on user's log in?
body: <p>I just wondering is it a good idea to loading different database based on user's log in detail. It's about assign a database to each individual user. </p>
  
  <p>This is just a thought, i am developing an application (PHP) would like multiple users to use the app but without replicate the source code again and again, rather just load up different database. </p>
  
  <p>The application is really a container of another application. So the user register under <strong><em>app-A</em></strong>, and then have the permission to create, edit and update user in app-B.</p>
  
  <p>I am talking about <strong>app-A</strong> in here.</p>
  
  <p>My final question is:</p>
  
  <p>Is it ok to do? What's the con and pro? Thanks for any suggestion or help. </p>