diff --git a/findindb.php b/findindb.php index 2482bfb..398137d 100755 --- a/findindb.php +++ b/findindb.php @@ -27,8 +27,8 @@ while( $table = $db1->result->fetch_assoc()) { print_r($s[0]); echo EOL; - $query="SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . " LIKE '" . $string - echo $query . "'\n"; + $query="SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE " . $s[0] . " LIKE '" . $string . "'"; + echo $query . "\n"; $db2->query($query); if ( $db2->result->num_rows != 0 ) {