mySQL php query - news/ friends feed
- by rpsep2
I want to show a user the recent uploads from their friends.
I have the users friends id's in an array:
$friends
A user could have, potentially, thousands of friends.
I can select the uploads from 1 of a users friends with:
$row = $mysqli->query("SELECT * FROM photos WHERE uploader_id = ".$friend." ORDER BY date_uploaded DESC LIMIT…