ciao a tutti.
ho il seguente codice:
il problema è che nella funzione verifyLogin non riesco a vedere l'oggetto $db come mai?Codice PHP:
class Login extends Database{
.
.
private $db;
.
.
function __construct(){
$this->$db = new Database();
}
function verifyLogin() {
$query = "select * from tabella";
$oggetto = $this->$db->get_row($query);
}
grazie a tutti!!!