title: How to retrieve files from server folder using PHP and display/download it on a webpage using javascript?
body: <p>I have build a website where a user can upload user information like name, contact etc. and upload a resume in pdf format which am storing in a "uploads" folder and storing its full path in database column. </p>
  
  <p>I want to build a simple website interface that will retrieve all files along with user info (am having path of all files in database as mentioned above) and display it on interface. How can I achieve it using PHP and javascript?</p>
  
  <p>PS : Am using godaddy.</p>
  
  <p>Here is how I uploaded file : </p>
  
  <pre><code>$path = "/home/easyemployment/public_html/uploaded/";
  $tmp  = $_FILES['userfile']['tmp_name'];
  $fileName = $_FILES['userfile']['name'];
  move_uploaded_file($tmp, $path.$fileName);
  $fullpath = $path.$fileName;
  $query="INSERT INTO seeker VALUES ('$unm', '$company', '$email', '$city', $contact, '$fullpath')"; 
  </code></pre>