Files
WebDB/website/public/template_sql.php
Lars van Hijfte 6385324b13 The menu now backend supported
It loads the friends and groups of userID 2 by default (only if there is no session userID set
2017-01-17 14:16:17 +01:00

17 lines
302 B
PHP

<html>
<head>
</head>
<body>
<?php
include_once("../queries/connect.php");
include_once("../queries/friendship.php");
$friends = selectAllFriends($db, 666);
while($friend = $friends->fetch(PDO::FETCH_ASSOC)) {
echo $friend['username'].' '.$friend['onlinestatus'] . "<br />";
}
?>
</body>
</html>