diff --git a/findindb.php b/findindb.php index bd65e40..2718aa7 100755 --- a/findindb.php +++ b/findindb.php @@ -16,8 +16,10 @@ while( $table = $db1->result->fetch_assoc()) $columns = $db2->result->fetch_all(); foreach($columns AS $key=>$s) { + $db2->query("SELECT * FROM " . $s[0]); + $tableau = $db2->result->fetch_all(); echo "column " . $s[0] . "\n"; - if (array_search($string, $columns) !== false) + if (array_search($string, $tableau) !== false) { echo "column " . $s . " => " . "$key\n"; }