My current query looks something like this:
$result = mysqli_query($con,"SELECT GroupID FROM guests WHERE FirstName='$FirstName' AND LastName='$LastName'");
However, it is possible that when entering their first name or last name, a guest may decide to put a space in their name (e.g. Anne Marie or annemarie or AnneMarie should all be the same person). What I'd like to do is to be able to execute my above code, but for the where statement to compare only based on letters and disregard spaces and capitalization. I hope this makes sense!
I will be pre-populating the table "guests" with my guest names. I don't want to enter their names with no caps or spaces, since the information will also be used to contact them.
Help?