|
|
@@ -151,8 +151,8 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
|
|
|
print_r($sql_rel_and);
|
|
|
echo " .EOF</pre>";
|
|
|
|
|
|
- foreach($sql_rel_and as $T=>$z_rel_and) {
|
|
|
- foreach($z_rel_and as $z_rel_and_name=>$z_rel_and_name_col) {
|
|
|
+ foreach($sql_rel_and as $T=>$z_rel_and_arr) {
|
|
|
+ foreach($z_rel_and_arr as $z_rel_and_name=>$z_rel_and_name_col) {
|
|
|
$sql_rel_and_sql[$T][$z_rel_and_name]="select * from ".$T." where ( ";
|
|
|
foreach($z_rel_and_name_col as $z_rel_and_name_cur=>$z_rel_and_name_col_to) {
|
|
|
if( isset($sql_rel_and_sql[$T][$z_rel_and_name])) $sql_rel_and_sql[$T][$z_rel_and_name].=" and `".$z_rel_and_name_cur."` like '%.".$z_rel_and_name_col_to."%'" ;
|