1
I have a snippet of the code that picks up and the first and last user name of a table and stores in another table. For example.:
Table users: Carlos Drummond de Andrade
Picked up Carlos Andrade and stored in another table.: Table selected users
The system has an internal search from which it searches the first table users, but how would I make this search accurate, having in the client’s view only the first and last name? I tried to use LIKE.:
$sql = mysqli_query($conexao,"SELECT * FROM tab_usuarios WHERE NomeUsuarios LIKE '%".$nomeBusca."%' ");
But it didn’t work!
You want to search or extract the first and last words?
– Guilherme Nascimento