Files
WebDB/website/public/template_sql.php
Lars van Hijfte 186cdf1445 Made $db global
2017-01-19 11:57:54 +01:00

17 lines
297 B
PHP

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