Live chatting now shows up in the chat-history

This commit is contained in:
Lars van Hijfte
2017-01-18 14:34:15 +01:00
parent eb2a343d5f
commit 19f525d168
7 changed files with 132 additions and 47 deletions

View File

@@ -5,7 +5,7 @@ include_once("../queries/private_message.php");
if (isset($_POST["destination"]) &&
isset($_POST["content"])) {
if (sendMessage($db, $_POST["destination"], $_POST["content"])) {
if (sendMessage($_POST["destination"], $_POST["content"])) {
echo $_POST["content"] . " is naar " . $_POST["destination"] . " gestuurd";
} else {
echo "YOU FAILED!!!";