<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">BİLGİ</th>
<th scope="col">TARİH</th>
<th scope="col">İP</th>

</tr>
</thead>
<tbody>
<?php
include('tetherhammurdb.php');
$sorgu = $db->query('SELECT * FROM log ORDER BY ID DESC');
$bankontrol = $db->query('SELECT * FROM ban');

foreach($sorgu as $oku)
{
$bilgi= str_replace(' ', '', $oku['bilgi']);
?>
<tr>
<td style="font-weight:600;color:#777;"><?php echo htmlspecialchars($oku['id']); ?></td>
<td><?php echo htmlspecialchars($oku['bilgi']); ?></td>
<td><?php echo htmlspecialchars($oku['tarih']); ?></td>
<td><?php echo htmlspecialchars($oku['ip']); ?></td>
</tr>
<?php } ?>
</tbody>
</table>

Elimde ki hazır şablon bu hocam biliyorsanız düzenleyip kullanabilirsiniz PDO bu bilginiz olsun