get the query ready for nameSearch.php
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<style>
|
||||
body {
|
||||
background-color: #3B5998;
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -20,7 +24,7 @@ if ($conn->connect_error) {
|
||||
}
|
||||
echo "Connected successfully";
|
||||
|
||||
$query = "Select * from contacts where fname = " + $fname + " and lnam = " + $lname;
|
||||
$query = "Select * from contacts where fname = {$fname} and lnam = {$lname}";
|
||||
|
||||
print $query;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user