Hello! I have an application that uploads the PDF file whose url is saved in the database and the file in a folder. By clicking the view button the pdf file opens in the browser.
<a href="view.php?id= NÃO SEI O QUE COLOCAR AQUI"><button type="button" class="button btn btn-link">View</button></a>
This is my view.php:
<?php
header('Content-type: application/pdf');
echo $row['arquivo'];
?>
I do not know what to do. Can anyone help me?