I have a table that stores cities
id | city | player
1 | Miami | Mark
2 | Miami Beach | Tiffany
3 | New York | John
4 | Boston | Bette
5 | Boston | Laura
I have a query that selects the city according to input
$select = $conn->prepare("SELECT player FROM game_table WHERE city LIKE=?");
$select->bind_param("s", $city);
$select->execute();
$select->close();
How do I use the query with a prepared statement and select everyone from the same city? Miami should return 2 players. How can I make sure the system recognizes Miami Beach as part of Miami?