What I am trying to do is take a already exsisting class variable to a database for example lets call it
$DB
now with that I want place it in a newer class for example
class Something
{
Something ()
{
$DB->query(etc..);
}
}
And then finally in my inital code uses the require_once function to get both of the scripnts.
<?php
require_once('./global.php'); // Object already setup
require_once('./Something.php');
$DB->query();
$ss = new Someting;
$ss->Something();
?>
So any ideas?
Thank you for your time
- Rayn