Fixed syntax and wording of a message
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
foreach($db_connection->query($sql_statement) as $row)
|
foreach($db_connection->query($sql_statement) as $row)
|
||||||
$num = 1;
|
$num = 1;
|
||||||
if($num == 1)
|
if($num == 1)
|
||||||
echo "you already sent a request";
|
echo "You have already sent a request or are already friends.";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$sql_select = "SELECT username";
|
$sql_select = "SELECT username";
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
{
|
{
|
||||||
$sql_statement = "INSERT INTO friendList VALUES ('".$_SESSION["loggedInUser"]."', '".$_POST['friend']."', false)";
|
$sql_statement = "INSERT INTO friendList VALUES ('".$_SESSION["loggedInUser"]."', '".$_POST['friend']."', false)";
|
||||||
$db_connection->query($sql_statement);
|
$db_connection->query($sql_statement);
|
||||||
echo "Friend request sent to $_POST[\'friend\']";
|
echo "Friend request sent to ".$_POST['friend'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user