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){
|
||||
|
||||
Reference in New Issue
Block a user