Jump to content

How to After pulling info from DB send an email


CommandoS

Recommended Posts

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

 

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

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


?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.