Código PHP:
Ver original
while ($MyFetch2 = $MyQuery2->fetch_assoc()){ echo '<input type="text" name="Items[]" value="'.utf8_encode($MyFetch2['Reducido']).'" class="InputOculto"><td class="HeadCuaderno" title="'.utf8_encode($MyFetch2['NombreItem']).'">'.$MyFetch2['Reducido'].'</td>'; } $Query3 = "SELECT * FROM `Matriculaciones` WHERE `Curso` = '".$_GET['Curso']."'"; $MyQuery3 = $MyConnect->query($Query3); while ($MyFetch3 = $MyQuery3->fetch_assoc()){ $Query4 = "SELECT * FROM `Usuarios` WHERE `ID` = ".$MyFetch3['Alumno'].""; $MyQuery4 = $MyConnect->query($Query4); $MyFetch4 = $MyQuery4->fetch_assoc(); echo ' <tr> <td class="NumeroLista">'.$MyFetch3['NumeroLista'].'</td> <td class="CuerpoNormal">'.utf8_encode($MyFetch4['NombreA1'].' '.$MyFetch4['NombreA2'].', '.$MyFetch4['NombreN']).'</td> '; $Query5 = "SELECT * FROM `".$Tabla."-Cuaderno` WHERE `NumeroLista` = '".$MyFetch3['NumeroLista']."'"; $MyQuery5 = $MyConnect->query($Query5); while ($MyFetch5 = $MyQuery5->fetch_array(MYSQLI_NUM)){ echo '<td class="Calificacion"><input type="text" value="'.$MyFetch5[$i].'" class="CampoNotas" name="'.$MyFetch5[0].'[]"></td>'; } } }