Here is the code
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "search";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "Select * from keywords";
$result=mysqli_query($conn,$sql);
print "<table width='100%'>";
print "<thead>";
print "<th>Id</th>";
print "<th>Keyword</th>";
print "<th>Count</th>";
print "<thead>";
print "<tbody align='center'>";
while ($row = $result->fetch_row()) {
print '<tr>';
print "<td>".$row[0]."</td>";
print "<td>".$row[1]."</td>";
print "<td>".$row[2]."</td>";
print '</tr>';
}
print "</tbody>";
print "</table>";
?>