title: Export HTML table to MySQL
body: <p>Let's say I have an HTML table.</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;table border="1"&gt;
  &lt;tr&gt;
  &lt;th&gt;Username&lt;/th&gt;
  &lt;th&gt;Password&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;User_1&lt;/td&gt;
  &lt;td&gt;Password_1&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;User_2&lt;/td&gt;
  &lt;td&gt;Password_2&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I need a script that creates the COLUMNS in the TH tag to a MySQL table, and then inserts the data that's in the TD tag. How to do that?</p>