|
@@ -194,6 +194,7 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
|
|
|
$sql_t[$T].=$sql_t_str[$T]." ) ";
|
|
$sql_t[$T].=$sql_t_str[$T]." ) ";
|
|
|
//not loop
|
|
//not loop
|
|
|
if( isset($hist_loop[$T])) {
|
|
if( isset($hist_loop[$T])) {
|
|
|
|
|
+ echo "<br> hist loop cnt: ". count($hist_loop);
|
|
|
foreach($hist_loop[$T] as $hist_rec) {
|
|
foreach($hist_loop[$T] as $hist_rec) {
|
|
|
$sql_t[$T].=" and ID!='".$hist_rec->ID."' ";
|
|
$sql_t[$T].=" and ID!='".$hist_rec->ID."' ";
|
|
|
}
|
|
}
|
|
@@ -213,7 +214,7 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
|
|
|
echo "\n<br> #149 found "; print_r($h);
|
|
echo "\n<br> #149 found "; print_r($h);
|
|
|
$hist_loop[$tables['Z'][$T]][]=$h;
|
|
$hist_loop[$tables['Z'][$T]][]=$h;
|
|
|
|
|
|
|
|
- print_r($hist_loop);
|
|
|
|
|
|
|
+ // print_r($hist_loop);
|
|
|
|
|
|
|
|
dig_next($hist_loop, $tables['Z'][$T],$h,$loop);
|
|
dig_next($hist_loop, $tables['Z'][$T],$h,$loop);
|
|
|
//rel dzieci
|
|
//rel dzieci
|