Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Small social network MySQL help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TreyChristopher" data-source="post: 171109" data-attributes="member: 18596"><p>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..</p><p> </p><p>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"</p></blockquote><p></p>
[QUOTE="TreyChristopher, post: 171109, member: 18596"] 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" [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Small social network MySQL help
Top