diff --git a/findindb.php b/findindb.php index feee34f..146bb98 100755 --- a/findindb.php +++ b/findindb.php @@ -29,7 +29,7 @@ while( $table = $db1->result->fetch_assoc()) echo EOL; if ( $s[0] == 'mail') echo "######################################### mail" ; - $query="SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE '" . $s[0] . "' LIKE '" . $string . "'"; + $query="SELECT * FROM " . $table['Tables_in_nextcloud'] . " WHERE '" . $s[0] . "' LIKE '%" . $string . "%'"; //echo $query . "\n"; $db2->query($query); if ( $db2->result->num_rows != 0 )