All functional now!!!

This commit is contained in:
WilliamMiceli
2019-12-04 21:17:49 -05:00
parent 7967ffaf13
commit a055e329be
3 changed files with 4 additions and 3 deletions

View File

@@ -52,4 +52,5 @@ INSERT INTO friendList
(username, friend, confirm)
VALUES
('user2', 'user1', false),
('user1', 'user3', true);
('user1', 'user3', true),
('user3', 'user1', true);

View File

@@ -23,7 +23,7 @@
$sql_order = "ORDER BY friend";
$sql_statement = $sql_select." ".$sql_from." ".$sql_where." ".$sql_order;
foreach($db_connection->query($sql_statement) as $row){
print $row['friends']."\n";
print $row['friend']."\n";
}
echo '</pre>';
}catch(PDOException $e){

View File

@@ -12,7 +12,7 @@
<!--#include virtual="topNavBar.html" -->
<h2><font color="white">Search by</h2>
<form method="post" action="usernameSearch.php">
<form method="post" action="usernameSearch.php">
Username: <br><input type="text" name="username"><br>
<input type="submit">
</form>