title: php to display file information and download link if files are present - How to adjust for multiple files
body: <p>I have a piece of php that if a specified folder has a file in, it will display the filename, date created and present a download button, if the folder is empty it will show nothing. This works very well but if I have more than one file in the folder it bunches all the filenames together - what I want is the separate information displayed for every file.</p>
  
  <p>To help you understand the problem here is an image showing the problem and the code. I got very far on my own but its way above my head, I just cant see a simple way to correct the problem. The code may look very awkward and odd as I'm totally new at this but it looks visually right on the browser. I would really appreciate any help thank you.</p>
  
  <p>Here is an image of the problem: <a href="http://i46.tinypic.com/m79cvs.png" rel="nofollow">http://i46.tinypic.com/m79cvs.png</a></p>
  
  <pre><code>    &lt;?php if (!empty($thelist)) { ?&gt;
  &lt;p class="style12"&gt;&lt;u&gt;Fix&lt;/u&gt;&lt;/p&gt;
  &lt;p class="style12"&gt;&lt;?=$thelist?&gt;&lt;?php echo " - " ?&gt; &lt;?php $filename = '../../customers/client1/client1.fix.exe';
  if (file_exists($filename)) {
      echo "" . date ("m/d/Y", filemtime($filename));
  }
  ?&gt; &lt;?php echo " - &lt;a href='download.php?f=client1/client1.fix.exe'&gt;&lt;b&gt;Download&lt;/b&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a     href='download.php?f=client1/client1.fix.exe'&gt;
  &lt;img src='../css/images/dlico.png' alt='download' width='35' height='32'     align='absmiddle' /&gt;&lt;/a&gt;" ?&gt;
  &lt;/p&gt;
  &lt;?php } ?&gt;
  </code></pre>