In which cases will work with more than one bank in php? [closed]

1

I'm working on a system where more than one company will have its space and I want to do something in which companies register their products and visitors (users) can first of all see all the companies and clicking on one of them see your products.

I thought of using a bank for each company, or just a tabala organizing the companies and their code inserting the products to identify each company in their products.

What's the best way? Could anyone who has gone through this give me strength?

Thank you in advance for your attention

    
asked by anonymous 10.03.2016 / 01:54

1 answer

1

I think the best way is to work with tables, not a bank for each company.

Because a bank for each company, it means different connections in the database to access data of each company, this with time can become confusing and complex the backups, maintenance of bank, imagine you are to update a table of your system , and you have 3 thousand registered companies, so this means 3 thousand database, updating the 3 thousand database tables is really impractical as you end up losing control of your system.

    
10.03.2016 / 02:29