0

How to create facebook like friend system

database and php MySQL coding

8th Aug 2018, 11:57 AM
Ankit Verma
Ankit Verma - avatar
1 Answer
+ 1
Store friends ids in comma separated string. Then query each id for user information. To remove or add friend, change the comma separated string to array and then you can add or remove ids from there. Change the array back to string and update friends column.
8th Aug 2018, 12:19 PM
Toni Isotalo
Toni Isotalo - avatar