Advertisement
Guest User

Untitled

a guest
May 25th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. function bd_alumno_datos_todos(){
  2. $sql = "SELECT
  3. cedu_alum, carr_id, seme_id, pera_id, peri_id, capa_id
  4. FROM
  5. alumno
  6. ORDER BY cedu_alum ASC";
  7.  
  8. $datos = sql2array( $sql );
  9.  
  10. return $datos;
  11. }
  12.  
  13. <?php include 'conexion.php'; $alumno= bd_alumno_datos_todos(); <h2>Listado de Alumnos</h2> <table> <thead> <tr>
  14. <th><center>Cรฉdula</th>
  15. <th><center>Carrera</th>
  16. <th><center>Semestre</th>
  17. <th><center>Perรญodo</th>
  18. <th><center>Capacitado</th>
  19. <th><center>Opciones</th>
  20. </tr>
  21. </thead>
  22.  
  23. <tbody>
  24.  
  25.  
  26.  
  27.  
  28. <?php foreach ($alumno as $alumno_temp): ?><tr>
  29.  
  30. <td><?=$alumno_temp['cedu_alum']?></td>
  31.  
  32. <td> <?= $alumno_temp['carr_id'];?></td>
  33.  
  34. <td><?=$alumno_temp['seme_id']?></td>
  35. <td>
  36. <?=$alumno_temp['pera_id']?>
  37. <td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement