Jump to content

How do I... separate DB classes from classes that create objects?


Recommended Posts

I want to have a class, that creates table entries.

 

E.G.

createService.class.php

this file will create new services, so I need to insert the result into a DB

 

My question.. do I build the sql query inside this class, or a separate DB class?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.