updating the searching

This commit is contained in:
Bryan
2019-11-25 13:24:32 -05:00
parent e975293cab
commit 36beca341f
5 changed files with 65 additions and 35 deletions

View File

@@ -1,7 +1,31 @@
<html>
<body>
<style>
body {
background-color: #3B5998;
}
</style>
Username is <?php echo $_POST["username"]; ?>
<?php
$username = $_POST["username"];
$servername = "localhost";
$username = "web";
$password = "Password456";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
$query = "Select * from contacts where username = " + $username;
print $query;
?>
</body>
</html>