Fixed chat
It now has a userID again, displays which user you are chatting withhover over user changes different background
This commit is contained in:
@@ -2,13 +2,16 @@
|
||||
function getHeaderInfo() {
|
||||
$stmt = $GLOBALS["db"]->prepare("
|
||||
SELECT
|
||||
`fname`,
|
||||
`lname`,
|
||||
`profilepicture`
|
||||
`fname`,
|
||||
`lname`,
|
||||
IFNULL(
|
||||
`profilepicture`,
|
||||
'img/notbad.jpg'
|
||||
) AS profilepicture
|
||||
FROM
|
||||
`user`
|
||||
`user`
|
||||
WHERE
|
||||
`userID` = :userID
|
||||
`userID` = :userID
|
||||
");
|
||||
$stmt->bindParam(":userID", $_SESSION["userID"]);
|
||||
$stmt->execute();
|
||||
|
||||
Reference in New Issue
Block a user