actually fixed it for once, also hopefully fixed nameSearch
This commit is contained in:
@@ -10,10 +10,8 @@
|
||||
|
||||
<?php
|
||||
|
||||
$fname = $_POST["fname"];
|
||||
$lname = $_POST["lname"];
|
||||
|
||||
$query = "Select * from contacts where fname = {$fname} and lname = {$lname}";
|
||||
$query = "Select * from contacts where fname = '".$_POST["fname"]."' and lname = '".$_POST["lname"]."'";
|
||||
|
||||
|
||||
foreach($db_connection->query($query) as $row){
|
||||
|
||||
@@ -14,7 +14,6 @@ body {
|
||||
</style>
|
||||
|
||||
<?php
|
||||
print($username);
|
||||
echo "<br>";
|
||||
$query = "Select * from contacts where username = '".$_POST["username"]."'";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user