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