<?php include_once "config/conexao.php"; include_once "config/mysqlmanager.php"; $db = new MysqlManager(); include "classe/classAlunos.php"; $clsAlunos = new Alunos(); require_once "dompdf/dompdf_config.inc.php"; $VarRelAlunos = $clsAlunos->RelAlunos(); $html = '<html><header></header><body>'; $html .= ' <h2>Relatorio de Alunos</h2> <table width="100%" border="1" bordercolor="#CCCCCC" style="border-collapse:collapse;" cellpadding="0" cellspacing="0" id="tbl_relatorio" > <tr> <th>Código</th> <th>Alunos</th> <th>Tel. Celular</th> <th>Endereço</th> <th>Bairro</th> <th>Número</th> <th>Professor</th> </tr> '; for ($i = 0; $i < count($VarRelAlunos); $i++) { $html .= ' <tr> <td>' . $VarRelAlunos[$i]['codigo_paciente'] . '</td> <td>' . $VarRelAlunos[$i]['aluno'] . '</td> <td>' . $VarRelAlunos[$i]['telefone_celular'] . '</td> <td>' . $VarRelAlunos[$i]['endereco'] . '</td> <td>' . $VarRelAlunos[$i]['bairro'] . '</td>