I'm trying to create a restaurant search that will find the restaurant in the database even when the user only inputs part of the whole name.

Here is the code:

First I take the input, sanitize it and then add the `%` signs to the left and right.

```
$restaurantNameTest = InputCleaner($_GET["restaurantName"]);
$restaurantName = ('%' . $restaurantNameTest . '%');

```

Then I run the query:

```
$result = mysqli_query($conn, 
"SELECT restaurantID,restaurant_name, cusine, wait_time
FROM Restaurant
WHERE restaurant_name = '$restaurantName'");

```

For some reason this isn't working and no results are found unless I type in the name perfectly. Am I doing it wrong?