title: how to download a pdf file using php whose path is stored in the mysql?
body: <p>I am using this code to write pdf file to the server. It sends the file to a folder called DATA. And I am storing the file name to mysql.</p>
  
  <pre><code>$target = "data/";  $target = $target . basename( $_FILES['file']['name']); 
  
  if(isset($_POST['Submit']))
  {
  {
  $path = $_FILES['file']['name'];
  }  
  
  if(move_uploaded_file($_FILES['file']['tmp_name'], $target))
  {
  echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded;  
  }
  else
  {   
  echo "Sorry, there was a problem uploading your file.";
  } 
  </code></pre>
  
  <p>Now plz can anyone help me to download this pdf file.??</p>