|
@@ -123,7 +123,7 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig) {
|
|
|
|
|
|
|
|
foreach($sql as $T => $rel) {
|
|
foreach($sql as $T => $rel) {
|
|
|
$sql_t[$T]=" select * from ".$T." where ";
|
|
$sql_t[$T]=" select * from ".$T." where ";
|
|
|
- foreach($rel as $col=>$val) {
|
|
|
|
|
|
|
+ foreach($rel['rel'] as $col=>$val) {
|
|
|
$sql_t[$T].=" `".$col."` = '".$val." " ;
|
|
$sql_t[$T].=" `".$col."` = '".$val." " ;
|
|
|
}
|
|
}
|
|
|
//not loop
|
|
//not loop
|