add in a " to correct the php file
This commit is contained in:
@@ -7,6 +7,7 @@ body {
|
||||
</style>
|
||||
|
||||
<?php
|
||||
|
||||
$username = $_POST["username"];
|
||||
|
||||
$servername = "localhost";
|
||||
@@ -21,9 +22,10 @@ if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
echo "Connected successfully";
|
||||
|
||||
echo "<br>";
|
||||
echo "Awesome dude";
|
||||
$query = "Select * from contacts where username = {$username};
|
||||
$query = "Select * from contacts where username = {$username}";
|
||||
|
||||
print $query;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user