get_array( "select j_id from jrnx join jrn on (jr_grpt_id=j_grpt) where jr_id=$1 ", array(48)); $nb = count($a_jrnxId); for ($i = 0; $i<$nb; $i++) { // First row $a = $anc->get_by_jid($a_jrnxId[$i]['j_id']); if (! empty($a) ) { $complete=$anc->to_request($a, 1); var_dump($complete); } }