Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <tbody id="myTable">
  2. <?php
  3. mysqli_set_charset($conexion, "utf8");
  4. //Generamos consulta.
  5. $sql = "SELECT concat(a.nombre, ' ', a.Apellido), Seccion, r.IdRegistro
  6. From registro r
  7. INNER JOIN alumno a on r.Identidad_Alumno = a.Identidad
  8. where IdGrado = '$grado' and IdModalidad = '$modalidad' and Seccion ='$seccion' and Anio = '$anio'";
  9. $result = mysqli_query($conexion, $sql);
  10. while ($ver = mysqli_fetch_row($result)) {
  11. $datos = $ver[0] . "||" .
  12. $ver[1];
  13. ?>
  14. <tr>
  15. <td> <?php echo $ver[0] ?> </td>
  16. <td hidden><?php echo $ver[2] ?></td>
  17.  
  18. <td>
  19. <button type="button" class="btn btn-success" onclick="asiste()" id="si">SI</button>
  20. <button type="button" class="btn btn-danger" onclick="inasiste()" id="no">NO</button>
  21. </td>
  22. <td id="des">Realizar Asistencia</td>
  23. </tr>
  24. <?php
  25. }
  26. ?>
  27. </tbody>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement