wywala błąd:
Fatal error: Call to a member function exec() on a non-object in rb.class.php on line 40
i kod funkcji:
public function check() { include("language/pl.php"); $this->insert = $this->pdo -> exec('INSERT INTO `users` (`imie`, `nazwisko`, `ulica`, `miejscowosc`, `mail`, `haslo`) VALUES( \''.$this->imie.'\', \''.$this->nazwisko.'\', \''.$this->ulica.'\', \''.$this->miejscowosc.'\', \''.$this->mail.'\', \''.$this->haslo.'\')'); if ($this->insert>0) { $this->statement=$lang[0]; } else { $this->statement=$lang[1]; } } else { $this->stmt=$lang[2]; } } return $this->stmt; }