title: Show values from a MySQL database table inside a HTML table on a webpage
body: <p>I want to retrieve the values from a database table and show them in a html table in a page.
  I already searched for this but I couldn't find the answer, although this surely is something easy (this should be the basics of databases lol). I guess the terms I've searched are misleading.
  The database table name is tickets, it has 6 fields right now (submission_id, formID, IP, name, email and message) but should have another field called ticket_number.
  How can I get it to show all the values from the db in a html table like this:</p>
  
  <pre><code>&lt;table border="1"&gt;
    &lt;tr&gt;
      &lt;th&gt;Submission ID&lt;/th&gt;
      &lt;th&gt;Form ID&lt;/th&gt;
      &lt;th&gt;IP&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;E-mail&lt;/th&gt;
      &lt;th&gt;Message&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;123456789&lt;/td&gt;
      &lt;td&gt;12345&lt;/td&gt;
      &lt;td&gt;123.555.789&lt;/td&gt;
      &lt;td&gt;John Johnny&lt;/td&gt;
      &lt;td&gt;johnny@example.com&lt;/td&gt;
      &lt;td&gt;This is the message John sent you&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>And then all the other values below 'john'.</p>