I have a snippet of code that takes the first and last user name from one table and stores it in another table. For example.:
Users table: Carlos Drummond de Andrade
I take Carlos Andrade and store it in another table: Table selected_users
The system has an internal search which searches the first users table, but how would I make this search to be accurate, having only the first and last name in the client view? I tried to use LIKE.:
$sql = mysqli_query($conexao,"SELECT * FROM tab_usuarios WHERE NomeUsuarios LIKE '%".$nomeBusca."%' ");
But it did not work!