-2
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 don’t know what to do. Someone can help me?
What will <a href="view.php? pdf_id= HOW WILL LOOK HERE"><button type="button" class="button btn btn-link">View</button></a>.
– Rodrigo Souza Jesus