update usernameSearch
This commit is contained in:
@@ -14,10 +14,9 @@ body {
|
||||
</style>
|
||||
|
||||
<?php
|
||||
$username = $_POST["username"];
|
||||
print($username);
|
||||
echo "<br>";
|
||||
$query = "Select * from contacts where username = $username";
|
||||
$query = "Select * from contacts where username = ".$_POST["username"];
|
||||
|
||||
foreach($db_connection->query($query) as $row){
|
||||
print $row['username']." First Name:".$row['fname']." Last Name:".$row['lname']."\n";
|
||||
|
||||
Reference in New Issue
Block a user