salve raga, ho una situazione incomprensibile! ho una chiamata ad una funzione:
la funzione ha questa struttura:Codice PHP:$this -> result = $this -> db_join('Bioagents_Rooms', 'BioAgents', 'Operators', 'LEFT JOIN', array('Bioagents.bioagent AS "bioagent"', 'organism', 'bioclass' ) , array('joina' => 'Bioagents_Rooms.bioagent', 'joinb' => 'BioAgents.bioagent', 'where' => 'floor="'.$_POST['floor'].'" AND building="'.$_POST['building'].'" AND complex="'.$_POST['complex'].'" AND room="'.$_POST['room'].'"'), $_POST['output']);
ebbene se metto $tablec che corrisponde ad operators, la funzione non vede l'ultimo campo $output, ma se le metto così:Codice PHP:function db_join($tablea, $tableb, $tablec, $jointype, $columns = array(), $conditions = array('joina' => '', 'joinb' => '', 'where' => '', 'order'=> '', 'distinct'=>'', 'group'=>'', 'limit'=>''), $output = '')...
chiamata
e la funzione cosìCodice PHP:$this -> result = $this -> db_join('Bioagents_Rooms', 'BioAgents', 'LEFT JOIN', array('Bioagents.bioagent AS "bioagent"', 'organism', 'bioclass' ) , array('joina' => 'Bioagents_Rooms.bioagent', 'joinb' => 'BioAgents.bioagent', 'where' => 'floor="'.$_POST['floor'].'" AND building="'.$_POST['building'].'" AND complex="'.$_POST['complex'].'" AND room="'.$_POST['room'].'"'), $_POST['output'], 'Operators');
quindi sposto il campo alla fine viene visto....Codice PHP:function db_join($tablea, $tableb, $jointype, $columns = array(), $conditions = array('joina' => '', 'joinb' => '', 'where' => '', 'order'=> '', 'distinct'=>'', 'group'=>'', 'limit'=>''), $output = '', $tablec)...
ma com'è possibile!!!!!
![]()
![]()
![]()

Rispondi quotando