Table notes with the following fields
The problem is that the student ID comes out, and I need to bring the student's name from the table alumnos
I currently have my query on php in the following way:
$getNotas = mysqli_query($con,"SELECT * FROM notas WHERE grupo='$grupo'") or die ('error al obtener datos de notas');
How can I bring the names of the students from the other table.
I have tried to use more I do not know if it is well structured
$getNotas = mysqli_query($con,"SELECT
nt.ID NOTA_ID ,
nt.grupo grupo,
nt.unidad_1 unidad1,
nt.unidad_2 unidad2,
nt.unidad_3 unidad3,
nt.unidad_4 unidad4,
al.ID ALUMNO_ID,
al.nombre nombrealumno, FROM notas nt INNER JOIN alumnos al ON nt.NOTA_ID = al.ALUMNO_ID WHERE nt.grupo='$grupo'") or die ('error al obtener datos de notas'.mysqli_connect_error());
Send the message "error when obtaining note data". It does not have syntax errors, but it does not show me anything.