I have the problem in an SQL query because in a field with auto complete I return the full name of the person I'm looking for in this case are first and last name, that sends it by post to a php file that generates the table Starting from the SQL query, however, it does not find anyone because for obvious reasons when searching for the name field there is no one named as the received parameter is the name and surname query
This is my sql query in PHP
$sql = "SELECT Nombre,Apellidos, ct_asistencias_loc.fecha, hora, ct_asistencias_loc.Status from ct_alumnos INNER JOIN ct_asistencias_loc on ct_alumnos.idAlumno=ct_asistencias_loc.idAlumno where Nombre ='".$_POST['nombre']."'";
An example of the parameter received for the query is the name of " Ramon Guillermo Juarez Carbajal "
In my database I have the fields of first and last name, my question is how to ask the query so that it uses the where from the two tables or that it mixes the name and surname data and the LIKE works?