fix usernameSearch
This commit is contained in:
@@ -16,7 +16,7 @@ body {
|
||||
<?php
|
||||
print($username);
|
||||
echo "<br>";
|
||||
$query = "Select * from contacts where username = ".$_POST["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