Laço de Repetição dentro do WriteHTML
Estou com essa dificuldade de colocar HTML e PHP dentro do "whiteHTML".
O código que vai dentro do whiteHTML é:
<div class="xs tabls">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Nome</th>
<th>CPF</th>
<th>Fixo</th>
<th>Celular</th>
<th>Recados</th>
<th>Ações</th>
</tr>
</thead>
<tbody>
<?php
include_once ('conexao.php');
$query = mysql_query("SELECT * FROM alunos WHERE turma = '$idTurma'");
while ($pesquisa = mysql_fetch_assoc($query)) { ?>
<tr class="active">
<td><?=$pesquisa['idAluno']?></td>
<td><?=$pesquisa['nome']?></td>
<td><?=$pesquisa['cpf']?></td>
<td><?=$pesquisa['foneFixo']?></td>
<td><?=$pesquisa['foneCelular']?></td>
<td><?=$pesquisa['foneRecado']?></td>
<td><a class="label btn_7 label-warning" href="cad_alunos.php?comando=A&idAluno=<?=$pesquisa['idAluno']?>">Alterar</a>
</td>
</tr>
<?php
}
?>
</table>
<a href="alunos_por_turma_PDF.php?idTurma=<?php echo $idTurma; ?>" class="buttonVerdeVazado">Gerar PDF</a>
</div>
Como proceder?
Discussão (0)
Carregando comentários...