0
//user: id name password
如何正確交友系統? 應該怎麼看錶友?與mysql的朋友系統
USERID | FRIENDID
user1id | user2id, user3id
user2id | user1id, user4id, user6id
user3id
user4id | user2id
舉例點?
或
USERID | FRIENDIS
user1id | user2id
user1id | user3id
user2id | user1id
user2id | user4id
etc
? 謝謝
您是否搜索過StackOverflow?有一些類似的帖子,如http://stackoverflow.com/questions/1977904/friend-of-a-friend-in-php-mysql – 2011-05-02 13:05:53