Problems with While

0

I'm developing a page that should pull the content name and the path of the HTML file that contains that content from the database. In the database table there are two columns: title_content and_html_content. This content is not in the database, just the path of the folder where the HTML file is.

Error : When pulling from the database and displaying this data in panels, it only succeeds in the first while. The other panels do not show the content, just the title.

Kindly, could anyone help me?!

<?php
    //Conexão com o banco
    include '../actions/conexao_db.php';

    //Consulta
    $consulta = mysqli_query($conexao, "SELECT * FROM disciplinas;");

    //Exibindo conteúdos em painéis
    while($exibe = mysqli_fetch_assoc($consulta)) {
        $nomeConteudo = $exibe["nomeConteudo"];
        $arquivoConteudo = $exibe["includeConteudo"];

            echo '<br><div class="panel panel-default">
                    <div class="panel-heading">' . $nomeConteudo . '</div>
                        <div class="panel-body">
                            <script>
                                $(document).ready(function(){
                                    $("#divConteudo").load("' . $arquivoConteudo . '");
                                });
                            </script>
                        </div>
                </div>';

    }                   
?>
    
asked by anonymous 07.04.2017 / 20:51

0 answers