Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bd_alumno_datos_todos(){
- $sql = "SELECT
- cedu_alum, carr_id, seme_id, pera_id, peri_id, capa_id
- FROM
- alumno
- ORDER BY cedu_alum ASC";
- $datos = sql2array( $sql );
- return $datos;
- }
- <?php include 'conexion.php'; $alumno= bd_alumno_datos_todos(); <h2>Listado de Alumnos</h2> <table> <thead> <tr>
- <th><center>Cรฉdula</th>
- <th><center>Carrera</th>
- <th><center>Semestre</th>
- <th><center>Perรญodo</th>
- <th><center>Capacitado</th>
- <th><center>Opciones</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($alumno as $alumno_temp): ?><tr>
- <td><?=$alumno_temp['cedu_alum']?></td>
- <td> <?= $alumno_temp['carr_id'];?></td>
- <td><?=$alumno_temp['seme_id']?></td>
- <td>
- <?=$alumno_temp['pera_id']?>
- <td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement