setting up a friend list in mysql

前端 未结 4 1824
天涯浪人
天涯浪人 2021-01-31 12:47

I want to make a friends list in my online game. I am not sure how to set it up or where to start. The add friends and accept friends part I can handle, but I don\'t know how to

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 13:30

    An alternative would be to set column A as follow: $checkfriend = (($friend1 $friend2) || ($friend2 $friend1))

    Column B as follow: (friendship accepted or friendship rejected) based on user's choice

    Basically have both user1 and user2 in the same column.

提交回复
热议问题