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) (username, friend, confirm)
VALUES VALUES
('user2', 'user1', false), ('user2', 'user1', false),
('user1', 'user3', true); ('user1', 'user3', true),
('user3', 'user1', true);

View File

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