I have this code:
$getAlumno = mysqli_query($con,"SELECT * FROM alumnos INNER JOIN modulos ON alumnos.nivel=modulos.ID WHERE alumnos.ID='$login'") or die ('error al obtener datos de alumno');
$row = mysqli_fetch_array($getAlumno,MYSQLI_ASSOC);
My problem is that in alumnos
I have the field name that shows the username:
<?php echo $row['nombre'];?>
and my table of modules has the same column name:
<?php echo $row['nombre'];?>
Then when I want to show the student's name information, he sends me the name of the module. How can I differentiate this information?