-4
someone could help me with a problem, how can I get a link from a pdf file and open it in the browser itself using php note: the varialvel $file = 'article.pdf' comes from the database.
 <ul class="list-group mt-4">
                <?php
                    foreach ($this->Dados['sts_artigos_cientificos'] as $cientificos) {
                        extract($cientificos);
                    ?>
                        <li class="bg-secondary list-group-item d-flex 
                        justify-content-between align-items-center ">
                            <a class="text-white" href="<?php echo URL . '/assets/files/pdf/'
                            . $id . '/' . $arquivo; ?>" target="blank"><?php echo $titulo; ?></a>
                        </li>
                    <?php
                    }
                    ?>
</ul>
personal thanks I ended up solving changing the query where I bring the database information "$Listar->fullRead('SELECT id, title, file FROM sts_artigos_scientificos ORDER BY id DESC', 'LIMIT :limit','limit=10');"
– Mateus Gomes