mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
17 lines
344 B
PHP
17 lines
344 B
PHP
<?php
|
|
|
|
$DB->query("
|
|
SELECT
|
|
f.FriendID,
|
|
u.Username
|
|
FROM friends AS f
|
|
RIGHT JOIN users_enable_recommendations AS r
|
|
ON r.ID = f.FriendID
|
|
AND r.Enable = 1
|
|
RIGHT JOIN users_main AS u
|
|
ON u.ID = f.FriendID
|
|
WHERE f.UserID = '$LoggedUser[ID]'
|
|
ORDER BY u.Username ASC");
|
|
echo json_encode($DB->to_array(false, MYSQLI_ASSOC));
|
|
die();
|