|
|
@@ -113,15 +113,17 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
|
|
|
$sql[$Z]['rel'][$z_rel_to]= $prev_dig->$prev_tbl['rel'][$z_rel_from];
|
|
|
}
|
|
|
}
|
|
|
- /*foreach($prev_dig as $col=>$val) {
|
|
|
- //transl ref to ref
|
|
|
- if( $prev_tbl['rel'][$z_rel_from] ) {
|
|
|
- $sql[$Z]['rel'][$z_rel_to]=$val;
|
|
|
- }
|
|
|
- }
|
|
|
- */
|
|
|
-
|
|
|
}
|
|
|
+ //search addr
|
|
|
+ foreach($z['rel_and'] as $z_rel_and=>$z_rel_and_name) {
|
|
|
+ $rel_and_ok=true;
|
|
|
+ foreach($z_rel_and_name as $z_rel_and_name=>$z_rel_and_name_col_to) {
|
|
|
+ if(isset($prev_dig[$z_rel_and_name])) echo "<br>121 rel_and OK";
|
|
|
+ else $rel_and_ok=false;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//X test
|