this looks not so much OOP to me?

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?

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
We don't take kindly to automated nonsensible adverts around here.