diff --git a/findindb.php b/findindb.php index 170b389..bd65e40 100755 --- a/findindb.php +++ b/findindb.php @@ -16,7 +16,7 @@ while( $table = $db1->result->fetch_assoc()) $columns = $db2->result->fetch_all(); foreach($columns AS $key=>$s) { - echo "column " . $s . "\n"; + echo "column " . $s[0] . "\n"; if (array_search($string, $columns) !== false) { echo "column " . $s . " => " . "$key\n";