Example #1
0
    {
        echo "Smoker Parent";
    }
}
class Child extends Parents
{
    private $con;
    function __construct($host, $user, $pass, $dbname)
    {
        $this->con = new mysqli($host, $user, $pass, $dbname);
    }
    function query($query)
    {
        return $this->con->query($query);
    }
    public function show()
    {
        $this->dalChawal();
        echo "Show Child";
    }
    public function talkative($abc)
    {
        echo $abc;
    }
}
$child = new Child("localhost", "root", "root", "helfer1");
$abc = $child->query("select * from setting where grupos = 'general'")->fetch_all();
var_dump($abc);
//$child->show();
//echo "<br>";
//$child->talkative("Aslam");