fix usernameSearch
This commit is contained in:
1 parent
84f1b389f8
commit
de6ac7132f
1 file changed
+1
-1
@@ -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