Error in php and mysqli
I have to classes:  
1. database.php  
2. query.php  
There is an error that I don't understand it:(
class db{
var ....
...
.
.

    public $sql;


    function  __construct() {
        $this->sql = new mysqli($this->dbhost, $this->dbuser, $this->dbpass, $this->dbname) ;
    }



class query extends db{

     public static function GetSt()
     $query = $this->sql->query("SELECT * FROM user"); // the error is here :(
     return $query->fetch_assoc();
}

===========================
HTML

var_dump(query::GetSt);
//Fatal error: Using $this when not in object context in /var/www/html/lib/query.php on line 12









Error in php and mysqli
===

I have to classes:  
1. database.php  
2. query.php  
There is an error that I don't understand it:(
class db{
var ....
...
.
.

    public $sql;


    function  __construct() {
        $this->sql = new mysqli($this->dbhost, $this->dbuser, $this->dbpass, $this->dbname) ;
    }



class query extends db{

     public static function GetSt()
     $query = $this->sql->query("SELECT * FROM user"); // the error is here :(
     return $query->fetch_assoc();
}

===========================
HTML

var_dump(query::GetSt);
//Fatal error: Using $this when not in object context in /var/www/html/lib/query.php on line 12








