早期php访问数据库的做法是写一个连接文件,include包含进来,然后在页面使用sql操作函数,返回结果。
CRUD (create, read, update and delete)
Active Record
OR Mapping
另外设计一个框架是还要考虑,切割表,分库。