TreyChristopher
New Member
- Jun 22, 2012
- 7
- 0
I'm creating a small Twitter-type script for a friend of mine and I can't quite figure out how to get it to only get updates from only your friends. I don't want to use something in the code to grab loads of statuses, then if user is friend etc.. because it would throw an odd amount of updates and might not get any at all..
I have a status table, users table, and a friendships table with 2 columns (friend1 and friend2). So is there any way to tell the MySQL query, "Only get statuses if friend2 exists"
I have a status table, users table, and a friendships table with 2 columns (friend1 and friend2). So is there any way to tell the MySQL query, "Only get statuses if friend2 exists"