Including a File Within a Class
I have a basic sql connect file that sets up the mysql connection that I include in the majority of my pages.
I have recently decided to move some functions and whatnot over to a class and I'm trying to include this file within the class.
This only works though if I include the file in EACH function which is by no means a good solution. Am I missing something? I've tried putting it outside the class, just inside, I've tried require, require_once, include, include_once
Is this just me being stupid or is there some way I can do this, I'm trying to limit the number of places I have to edit the SQL connection so if something changes I don't have to modify 50 files.