Problem when trying to insert data into pdf file by Dompdf in php mysql

Asked

Viewed 19 times

0

I’m making a download area of records from a database using Dompdf, but as soon as I put the sql code and while to bring the database data, it gives a series of errors within a dompdf file.

As soon as I enter the sql code gives these errors, I tried to find and did not find... someone has gone through the same problem that knows how to solve?

<?php

                    include 'conexao.php';

                        $sql = "SELECT * FROM `beneficiarios`";
                        $insert = mysqli_query($conexao, $sql);
                
                        while($rows = mysqli_fetch_assoc($insert)){
                        $beneficiario = $rows['beneficiario'];
                        $idade = $rows['idade'];
                        $categoria = $rows['categoria'];
                        $vacina = $rows['vacina'];
                        $dose = $rows['dose'];
    
        ?>  
    <tbody>
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <?php } ?>
    </tbody>
    </table>

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.