So basicly im coding a search page where people search for people Every account has 2 rows for their names eg. John Doe is stored into 2 rows in people table firstname = John and lastname = Doe So my question is when i search for someone when they type John it will return John Doe but if someone types in the full name "John Doe" it will return nothing So how could i merge 2 rows the firstname and lastname into one like this
mysqli_query($con, "SELECT firstname,lastname FROM people WHERE firstname AND lastname = '$searchquery'");
This above is just an example of how i need it to be