salve raga, ho una situazione incomprensibile! ho una chiamata ad una funzione:
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']); 
la funzione ha questa struttura:
Codice PHP:
function db_join($tablea$tableb$tablec$jointype$columns = array(), $conditions = array('joina' => '''joinb' => '''where' => '''order'=> '''distinct'=>'''group'=>'''limit'=>''), $output '')... 
ebbene se metto $tablec che corrisponde ad operators, la funzione non vede l'ultimo campo $output, ma se le metto così:
chiamata
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'); 
e la funzione così
Codice PHP:
function db_join($tablea$tableb,  $jointype$columns = array(), $conditions = array('joina' => '''joinb' => '''where' => '''order'=> '''distinct'=>'''group'=>'''limit'=>''), $output ''$tablec)... 
quindi sposto il campo alla fine viene visto....
ma com'è possibile!!!!!