<?php require_once 'miconexion.php'; require_once 'alumno.php'; $alumnos = Alumno::listar(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Lista de alumnos</title> </head> <body> <table> <thead> <tr> <th>MATRICULA</th> <th>NOMBRE DEL ALUMNO</th> <th>CORREO ELECTRONICO</th> <th>CARRERA</th> <th>DEPARTAMENTO</th> </tr> </thead> <tbody> <?php if (is_array($alumnos)) { ?> <?php foreach ($alumnos as $key => $alumno) { ?> <tr>
<?php require_once 'conexion.php'; require_once 'alumno.php'; // $alumno = new Alumno(); $lista = Alumno::listar(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Lista de alumnos</title> </head> <body> <table border="1" cellpadding="0" cellspacing="0"> <thead> <tr> <th>MATRICULA</th> <th>NOMBRE DEL ALUMNO</th> <th>CORREO ELECTRONICO</th> </tr> </thead> <tbody> <?php if (is_array($lista)) { ?> <?php foreach ($lista as $l => $alumno) { ?> <tr> <td><?php