Chats
    fetch(PDO::FETCH_ASSOC)) { $i ++; // Set default values of a friend. $username = $friend["username"]; $name = $friend["name"]; $userID = $friend["userID"]; $pf = "img/avatar-standard.png"; // Change values if needed. if (!empty($friend["profilepicture"])) $pf = $friend["profilepicture"]; // Echo the friend. echo "
  • PF
    $name
    $username
  • "; } if (isset($_GET["chatID"]) && $_GET["chatID"] != "") { $chatID = $_GET["chatID"]; echo ""; } ?>