Skip to main content
8 events
when toggle format what by license comment
S Nov 16, 2018 at 19:46 history edited Sᴀᴍ Onᴇᴌᴀ CC BY-SA 4.0
update wording
Nov 16, 2018 at 19:39 review Suggested edits
S Nov 16, 2018 at 19:46
Nov 16, 2018 at 13:41 comment added Your Common Sense OOP will be involved in how you're going to use these connections though.
Nov 16, 2018 at 13:22 comment added Jordan Turner Alright, well I'll take that onboard. Thanks again for your feedback.
Nov 16, 2018 at 13:12 comment added Your Common Sense Speaking of multiple connections, there is nothing much OOP can help you with. You just need multiple instances of PDO, and how do you get them doesn't make too much difference. OOP is more about organizing the code, but here there is not so much to organize
Nov 16, 2018 at 13:05 comment added Jordan Turner Thanks you. I do feel like a bit of an idiot now you've made it that simple and I understand that a class isn't necessary but I was just looking for some advice on the best practices of handling multiple connections using OOP PHP. I realise I should just use a single function or method now. I find some of the concepts of OOP a bit strange so I would like to practice it to try and understand it more. I've watched some tutorials on OOP and MVC pattern so I was trying to keep everything separate so that's why my plan was to use a class to handle the connections.
Nov 16, 2018 at 12:50 vote accept Jordan Turner
Nov 16, 2018 at 12:53
Nov 16, 2018 at 12:40 history answered Your Common Sense CC BY-SA 4.0