Gdzie popełniam błąd ?
<?php class db { private $connected = FALSE; private $selected = FALSE; private $counter = 0; protected $counter_lock = FALSE; private $debug = FALSE; function __construct($auto_connect = TRUE) { if($auto_connect) $this -> auto_connect(); } private function auto_connect() { } public function connect_and_sellect($host,$user,$pass,$db) { $this -> connect($host,$user,$pass); $this -> select($db); } public function connect($host,$user,$pass) { if(!$this -> connected) { return TRUE; else return FALSE; } } public function select($db) { if($this -> connected) { return TRUE; else return FALSE; } else $this -> error('Nie mozna wybrac bazy bez podlaczenia do serwera.',E_USER_ERROR); } public function query($query) { $this -> counter++; } } ?>