Dlaczego tak się dzieje i jak mogę zwrócić int?
public function checkURL() { $this -> resultURL = NULL; $db = NewADOConnection($this -> db()); $db -> debug = true; $db -> SetFetchMode(ADODB_FETCH_ASSOC); $this -> checkURL = $db -> GetArray('SELECT id, url FROM section WHERE status > 0'); $db -> Close(); { #jezeli istnieje zwraca true $this -> urlID = $this -> checkURL[$i]['id']; } #NAJCIEKAWSZE ===================================================== return $this -> urlID; } public function dataFromStaticpage() { if($this -> goodURL !== NULL) { $db = NewADOConnection($this -> db()); $db -> debug = true; $db -> SetFetchMode(ADODB_FETCH_ASSOC); $resulturl = $db -> GetArray('SELECT * FROM section WHERE id = '.$this -> goodURL); $db -> Close(); } else { } }
typ0: string typ1: boolean typ2: boolean