Or you can pass in a connection object reference as part of your class constructor. personally I usually just create one object to handle by SQL Interface, give it a private SQL Connection object, and then just open and close it as needed.
|
Results 1 to 7 of 7
Thread: global DB connection in classes?Threaded View
|
Click Here to Expand Forum to Full Width |