This is my first question, so hope it makes sense.
How can I link two tables using php/mysql when one contains a string with multiple values.
Basically, one table is myMembers table and contains a "friend_array" where multiple ID's are stored in a single string.
The other table contains a list of all my sites users posts (tweets as such).
How do I link both tables to display all a user's friends posts by the newest post?
// myMember table
id, friend_array,
1, 1,2
2, 2,5,7
.
.
// posts table
id, mem_id, post, post_date
1, 5, PHP ole, 2011-08-11 11:30
2, 2, AJAX ole, 2011-08-12 13:10
Hope this makes sense. Thank you all in advance