<!DOCTYPE html>
<html>
<body>
<?php
include("config.php");
$username=$_GET["username"];
$country=$_GET["country"];
$sql = "SELECT * FROM regform WHERE username LIKE '%$username%' And country LIKE '%$country%'";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<br> username: ". $row["username"]." - Country: ". $row["country"]."<br>";
}
} else {
echo "0 results";
}
$conn->close();
?>
</body>
</html>