title: Code causing page to render blank with PHP
body: <p>So this is the first PHP script (if it's even called that?) that I've ever written from scratch, and I'm having an issue in that when it's applied to the existing (and otherwise working) page, the page shows up blank. I was hoping one of the many people who are better and more experienced than I am can take  a look and find what is no doubt a blatant syntax error. Thank you in advance to anyone that shows me the light!</p>
  
  <pre><code>&lt;?php
  $sql = "SELECT * FROM 'jos_downloads_files'";
  $rows = $db-&gt;fetch_all_array($sql);
  
  foreach($rows as $row) {
      $filename = $row['filetitle'];
      $filepath = $row['realname'];
      $featured = $row['featured'];
      $id = $row['containerid'];
  }
  
  foreach ($id as $containername) {
  
      if ($id == 2) {
          $containername ="Incidental Information";
      }
  
      if ($id == 3) {
          $containername ="Monitoring Reports";
      }
  
      if ($id == 4) {
          $containername ="Agendas";
      }
  
      if ($id == 5) {
          $containername ="Decision Prep";
      }
  
      if ($id == 6) {
          $containername ="Agendas";
      }
  
      if ($id == 7) {
          $containername ="Policy Governance";
      }
  
      echo '&lt;div class = "moduletable"&gt;
          &lt;h3&gt;' . $containername . '&lt;/h3&gt;'; 
  
      foreach ($featured as $featureedtrue) {
  
          if ($featuredtrue == 1) {
              echo '&lt;ul class="weblinks"&gt;
                  &lt;li&gt;
                      &lt;a&gt;' . $filename . '&lt;/a&gt;
                  &lt;/li&gt;';
          }
      }
  }   
  ?&gt;
  </code></pre>