How to After pulling info from DB send an email
<p>This is working just fine on a single page. It gives me all information I need. But I want to send an email with it. Although I couldn`t figure out how can I do it</p>

<pre><code>$db = new mysqli('localhost', 'root', '', 'panel');
$sql = "select * from detail";
$read = $db-&gt;query($sql);

&lt;table style="border:0;width:600px;"&gt;
  &lt;tr&gt;
    &lt;td width="50px"&gt;Who&lt;/td&gt;
    &lt;td width="150px"&gt;Time&lt;/td&gt;
    &lt;td width="300px"&gt;What&lt;/td&gt;
  &lt;/tr&gt;
&lt;?php 
while($wr = mysqli_fetch_array($read)) {
 echo' &lt;tr&gt;
    &lt;td&gt;'.$wr['Who'].'&lt;/td&gt;
    &lt;td&gt;'.$wr['Time'].'&lt;/td&gt;
    &lt;td&gt;'.$wr['What'].'&lt;/td&gt;
  &lt;/tr&gt; ';
}


?&gt;
</code></pre>
