Gdy na pisze tak to mi zawsze wypisze wartosc z bazy:
<?php class db_vievRec extends db_query { var $where; var $coll; var $tabName; var $structFile; var $tableFile; var $row; var $ret; function execute($db) { { if($this -> coll == $coll[$i]) { $this -> coll = $i; break; } } { if($this -> where[0] == $coll[$i]) { $this -> where[0] = $i; break; } } { } { if($this -> where[1] == $row[$i][$this -> where[0]]) { $this -> row = $i; break; } } } function db_vievRec($tabName, $coll, $where) { $this -> tabName = $tabName; $this -> coll = $coll; $this -> where = $where; } } ?>
a gdzy tak:
<?php class db_vievRec extends db_query { var $where; var $coll; var $tabName; var $structFile; var $tableFile; var $row; var $ret; function execute($db) { { if($this -> coll == $coll[$i]) { $this -> coll = $i; break; } } { if($this -> where[0] == $coll[$i]) { $this -> where[0] = $i; break; } } { } { if($this -> where[1] == $row[$i][$this -> where[0]]) { $this -> row = $i; break; } } return $row[$this -> row][$this -> coll]; } function db_vievRec($tabName, $coll, $where) { $this -> tabName = $tabName; $this -> coll = $coll; $this -> where = $where; } } ?>
nic nie zwraca(czy chce przypoisac do zmiennej czy wyswietlic echo nic) jaka moze byc pezyczyna