Minor fixes and closing DB connections as needed
This commit is contained in:
@@ -54,11 +54,13 @@
|
||||
$db_connection->query($sql_statement);
|
||||
$sql_statement = "INSERT INTO friendList VALUES ('".$_SESSION["loggedInUser"]."', '".$_POST['friend']."', true)";
|
||||
$db_connection->query($sql_statement);
|
||||
echo "Friend request confirmed! You are both friends with each other now.";
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql_statement = "INSERT INTO friendList VALUES ('".$_SESSION["loggedInUser"]."', '".$_POST['friend']."', false)";
|
||||
$db_connection->query($sql_statement);
|
||||
echo "Friend request sent to $_POST[\'friend\']";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user