<?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);
while ($row = $result->fetch_row()) {
print '<pre>';
print_r($row);
print '</pre>';
}
?>