title: Print values in table with foreach loop PHP
body: <p>Hi i want to print out the values of <code>$row</code> in a table, i already have something but the output is not great. This is the code i have so far:</p>
  
  <pre><code>&lt;?php
  $sql = 'SELECT Titel FROM Algemeen ORDER BY Titel';
      foreach ($pdo-&gt;query($sql) as $row) {
          echo "
          &lt;table border='1'&gt;
             &lt;tr&gt;
                &lt;td&gt;".$row['Titel']. "&lt;/td&gt;"
  
           "&lt;/tr&gt;
          &lt;/table&gt;";
      }
  ?&gt;
  </code></pre>
  
  <p>So the table needs to be like this with a border</p>
  
  <ul>
  <li>Value 1</li>
  <li>Value 2</li>
  <li>Value 3</li>
  </ul>