Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

OO PHP help

Name: Anonymous 2009-08-31 20:21

Say I have a class like so:


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);
}
}

Name: Anonymous 2009-08-31 20:52

Fascinating.

Name: Anonymous 2009-08-31 21:42

>>2

BUTTPENISSORT

Name: Anonymous 2009-09-01 12:52

BUTTPENISSORT

Name: Anonymous 2009-09-01 18:47

quit using inferior and fundamentally flawed languages

Name: ​​​​​​​​​​ 2010-09-07 16:25


Don't change these.
Name: Email:
Entire Thread Thread List