简体   繁体   English

具有多个配置文件PHP MYSQL的计费系统

[英]billing system with multiple profile PHP MYSQL

My latest project is to build a billing system with multiple profile like 100+ training institutes connected with this system for their online front base management purpose. 我的最新项目是建立一个具有多个配置文件的计费系统,例如与该系统相连的100多个培训机构,用于其在线前端管理目的。

like.. 喜欢..

*Counseling *咨询

*Admission *入场

*Billing *账单

etc.. 等等..

now what i want to know whether to keep a single database for all the operations or its better to maintain individual database for individual organization/profile. 现在我想知道是为所有操作保留单个数据库还是更好地维护单个组织/配置文件的单个数据库。

well i'm kind a lost here just need a kick start. 好吧,我很失落,只需要一个开始。

i am using MySQL as database and PHP as my server side scripting language. 我使用MySQL作为数据库,PHP作为我的服务器端脚本语言。

Thanks in advance 提前致谢

If your institutes are totally isolated, so you never want to get data from a different institute or any kind of summation over all institutes and if you're not planning to automatically create a new institue, you can use one database for each. 如果您的机构完全孤立,那么您永远不想从其他机构获取数据或对所有机构进行任何总结,如果您不打算自动创建新机构,则可以为每个机构使用一个数据库。

But I don't see any advantage in this and suggest to just use one database and have a column institute_id in each table. 但我看不出在这个任何优势,建议只使用一个数据库,并有一列institute_id每个表。 Access control will of course be in your PHP code. 访问控制当然将在您的PHP代码中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM