I am trying to open a .pdf that is associated with a certain product. I am using PHP to display the product and its information. I then want to when a link is clicked have that PDF open in a new window.
I have these variables set up.
<?php
require_once("connect.php");
$thisone = $_GET['id'];
$allMov = "SELECT * FROM tbl_handbags WHERE handbags_id=".$thisone;
$movResults = mysql_query($allMov);
$row = mysql_fetch_array($movResults);
$filename = $row['filename_pdf'];
$prefix = "pdfs";
?>
And then this
<?php echo "<a target = '_blank' href='$prefix/$filename' >View and Download Spec Sheet .PDF </a>";?>
What is happening is that a new window opens however its the PDFS "Parent Directory". Here I can click on the proper PDF and it does what I want it to do. I just need to cut out the parent directory page somehow.