|
|
@@ -100,7 +100,7 @@ function start_dig($tables) {
|
|
|
function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
|
|
|
global $db,$tables;
|
|
|
$loop++;
|
|
|
- echo "###LOOP ".$loop;
|
|
|
+ echo "\n<hr>###LOOP ".$loop;
|
|
|
if($loop>5) die(' loop '.$loop);
|
|
|
//detect next ref tbls
|
|
|
$sql = array();
|
|
|
@@ -143,10 +143,10 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop) {
|
|
|
|
|
|
if( isset($sql_t)) {
|
|
|
foreach($sql_t as $T => $sql_ext) {
|
|
|
- echo "\nQuerying :".$sql_ext ;
|
|
|
+ echo "\n<br>Querying :".$sql_ext ;
|
|
|
$res=$db->query($sql_ext);
|
|
|
while($h=$db->fetch($res)) {
|
|
|
- echo "\n found "; print_r($h);
|
|
|
+ echo "\n<br> found "; print_r($h);
|
|
|
$hist_loop[$Y][]=$h;
|
|
|
dig_next($hist_loop,$t,$h,$loop);
|
|
|
}
|