Added personal Header

This commit is contained in:
Marijn Jansen
2017-01-18 16:22:27 +01:00
parent 097ccf49b3
commit e4ec666e03
2 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
<?php
function getHeaderInfo() {
$stmt = $GLOBALS["db"]->prepare("
SELECT
`fname`,
`lname`,
`profilepicture`
FROM
`user`
WHERE
`userID` = :userID
");
$stmt->bindParam(":userID", $_SESSION["userID"]);
$stmt->execute();
return $stmt->fetch();
}