: Call to a member function fetch() on a non-object in
i kod:
$this->res=1; $this->check=1; while($row = $this->result->fetch() && $this->check==1) { if($row['result']==1 && $this->res==1) { $this->res = $this->$row['result']; $this->result=1; } elseif($row['result']==0) { $this->result=0; $this->check=0; } else { $this->result=3; $this->check=0; } }
dodam, że jak usunę ten dodatkowy warunek pętli to jest ok..