Name: Anonymous 2009-08-31 20:21
Say I have a class like so:
And if want to use the "
class Connection
{
function __construct() {
...
$this->mysqli = new mysqli(params);
}
}And if want to use the "
$this->mysqli" in another class, can I use..
class NewClass extends Connection
{
function SomeFunction() {
...
$result = parent::$this->mysqli->query($query);
}
}