I've looked all over and ive not found a good answer, is there a way you can take your functions and make them in seprate files and call them to the class? it seems no one has tried this or i am ooking in the wrong place
You want to put parts of a class in a separate file? Yes, that's possible (using include), but I don't recommend it (bad design). Better yet, give a code example explaining what part you want to move to a separate file.
That shouldn't matter. The class has a purpose, and chopping it into pieces doesn't make it easier to maintain. Consider a book where every page is on a different shelve.
Including files like this inside your classes can be a bit problematic, as if the file is moved, you then have to rewrite all your classes that include that file. Maybe a "better" way would be to create a DB class and pass that via dependency injection. Your class then doesn't have to worry about creating a connection, selecting as db, etc, it can just get on with the one job - i.e. in this case, returning specific data.
I'm assuming that your class will have more methods.
public function __construct($db)
$this->db = $db;
public function getContent($id=NULL)
if($id && is_int($id))
You can use $db object as if you'd just created it inside the class itself. It shouldn't matter where the db object comes from as long as it shares a common interface for methods like 'query', 'execute' or whatever you decide.
I suggest PDO as opposed to the defunct mysql_* functions. Just a thought.