[eluser]bluepicaso[/eluser]
Well hey all, I'm new to this friend list stuff. I recently code a project with friends list.
I thought of building friends table as same like of pabloheim above. BUt i was also thinking of the redundancy. it will create. In my case its just follow a user, the other user needs not to approve you.
mY CURRENT FRIEND TABLE STRUCTURE
Quote:--------------------------------
frnd_id | user_id | frnds |
---------------------------------
The first column saved the auto generated id.
the next column "user_id" saves the value of the user
and the last column saves the string with IDs of other users containing "|" as a separator.
I was able to search users though and was also able to add them to a user.
But the problem starts when user searched and I'm unable in not showing user the same friends that he has in his list.
Please suggest me a better option.
IS MY DATABASE STRUCTURE CORRECT?
If not than can i switch over to pabloheim's structure above.
forgive me for my foolishness but please reply soon
Thank you.