<thead> <tr> <th style="background:black; color:white; text-align: center;">CI</th> <th style="background:black; color:white; text-align: center;">Nombre</th> <th style="background:black; color:white; text-align: center;">Direccion</th> <th style="background:black; color:white; text-align: center;">Telefono</th> <th style="background:black; color:white; text-align: center;">Correo</th> <th style="background:black; color:white; text-align: center;">Grado</th> <th style="background:black; color:white; text-align: center;">Tipo</th> <th style="background:black; color:white; text-align: center;">Acciones</th> </tr> </thead> <tbody> <?php while ($row = mysql_fetch_array($sx)) { $cs = $mt->Elegir_Tipo_ID($row['Tipo']); while ($r = mysql_fetch_array($cs)) { $nto = $r[0]; } ?> <?php echo '<tr>'; ?> <?php echo '<td style="text-align:center;">' . $row['CI'] . '</td>'; ?> <?php echo '<td style="text-align:center;">' . $row['Nombre'] . '</td>'; ?> <?php