|
|
@@ -194,11 +194,14 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
|
|
|
$sql_t[$T].=$sql_t_str[$T]." ) ";
|
|
|
//not loop
|
|
|
if( isset($hist_loop[$T])) {
|
|
|
- echo "<br> hist loop cnt: ". count($hist_loop);
|
|
|
+ echo "<br> hist loop cnt: ". count($hist_loop[$T]);
|
|
|
foreach($hist_loop[$T] as $hist_rec) {
|
|
|
$sql_t[$T].=" and ID!='".$hist_rec->ID."' ";
|
|
|
}
|
|
|
}
|
|
|
+ echo "<br> 202 hist loop cnt: <pre> ". count($hist_loop);
|
|
|
+ print_r($hist_loop);
|
|
|
+ echo "</pre>";
|
|
|
}
|
|
|
//echo "sql";
|
|
|
//print_r($sql);
|