All functional now!!!
This commit is contained in:
@@ -52,4 +52,5 @@ INSERT INTO friendList
|
||||
(username, friend, confirm)
|
||||
VALUES
|
||||
('user2', 'user1', false),
|
||||
('user1', 'user3', true);
|
||||
('user1', 'user3', true),
|
||||
('user3', 'user1', true);
|
||||
@@ -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){
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user