function critere_noeud_dist($idb, &$boucles, $crit) { // [...] // this construction with IN will make the compiler request // the use of the sql_in() functions $where = array("'IN'", "'$boucle->id_table." . "$primary'", "'('.sql_get_select('$id_parent', '$table_sql').')'"); if ($crit->not) $where = array("'NOT'", $where); $boucle->where[]= $where; }