this looks not so much OOP to me?
Submitted by newbz0r (not verified) on Fri, 18/01/2008 - 18:36.
so, just curious - why would you leave all these functions (connect(), execute_query()) laying around? Wouldn't it make more sense to extend the MDB2 class and encapsulate the functions in your new class? This way, the connection info can be a private variable, you can prevent stuff from happening to the db without your db object knowing about it, and everything is a lot cleaner conceptually? Not being a troll - I'm new to php and honestly curious: what's your thought process or guiding concept in laying the code out this way?
»
Recent comments
5 days 2 hours ago
5 days 4 hours ago
5 days 14 hours ago
1 week 3 days ago
1 week 3 days ago
1 week 5 days ago
1 week 5 days ago
2 weeks 1 day ago
2 weeks 2 days ago
2 weeks 2 days ago