Fixed syntax and wording of a message

This commit is contained in:
WilliamMiceli
2019-12-04 21:58:13 -05:00
parent d5f3df965f
commit 328560597e

View File

@@ -38,7 +38,7 @@
foreach($db_connection->query($sql_statement) as $row)
$num = 1;
if($num == 1)
echo "you already sent a request";
echo "You have already sent a request or are already friends.";
else
{
$sql_select = "SELECT username";
@@ -60,7 +60,7 @@
{
$sql_statement = "INSERT INTO friendList VALUES ('".$_SESSION["loggedInUser"]."', '".$_POST['friend']."', false)";
$db_connection->query($sql_statement);
echo "Friend request sent to $_POST[\'friend\']";
echo "Friend request sent to ".$_POST['friend'];
}
}
}