
January 22nd, 2012, 05:38 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
For a friends table, you don't need quite that much info, but it's close. You really only need two columns, with each one being the ID of the members that are set as friends.
Code:
user_1 user_2
45 53
If you want to do it "properly" also look into making a primary key using both columns so that you don't get duplicate entries. You should also check for entries that are around the other way, so you don't get something like:
Code:
user_1 user_2
45 53
53 45
|