How to avoid opening multiple connections to the DB with OOP PHP

前端 未结 3 2037
失恋的感觉
失恋的感觉 2021-02-09 10:35

I\'ve been a procedural programmer for over 4 yrs and it\'s time to start looking into OOP. With that said, let\'s say I needed to call two methods in my class. Each method requ

3条回答
  •  一生所求
    2021-02-09 10:51

    Use a database layer. Dibi is a great library in this case. http://dibiphp.com

提交回复
热议问题