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