HELP.. "Friend" system..
#14

This is better done with MySQL (its easier and faster in the longrun aswell).
You could create a users table and a friends table, which would contain symbolic links to the friends ID.

IE:

table users
username | userID | money

table friends
userID | targetID

Example implementation

table users
joe | 0 | 1000
bob | 1 | 2000
sky | 2 | 500

table friends
0 | 2
2 | 1

Therefore, Joe is friends with sky, bob is friends with sky, sky has two friends, likewise the other two only have one. This is much easier done than said in MySQL, it could be made in under an hour if you know what your doing.
Reply


Messages In This Thread
HELP.. "Friend" system.. - by Faith - 28.05.2010, 07:26
Re: HELP.. "Friend" system.. - by (SF)Noobanatior - 28.05.2010, 08:30
Re: HELP.. "Friend" system.. - by Faith - 28.05.2010, 10:04
Re: HELP.. "Friend" system.. - by Jay_ - 28.05.2010, 13:12
Re: HELP.. "Friend" system.. - by Faith - 28.05.2010, 16:17
Re: HELP.. "Friend" system.. - by Faith - 28.05.2010, 23:55
Re: HELP.. "Friend" system.. - by (SF)Noobanatior - 29.05.2010, 08:06
Re: HELP.. "Friend" system.. - by (SF)Noobanatior - 29.05.2010, 08:29
Re: HELP.. "Friend" system.. - by Faith - 29.05.2010, 09:45
Re: HELP.. "Friend" system.. - by (SF)Noobanatior - 29.05.2010, 20:51
Re: HELP.. "Friend" system.. - by Faith - 30.05.2010, 14:05
Re: HELP.. "Friend" system.. - by RedShirt - 30.05.2010, 14:36
Re: HELP.. "Friend" system.. - by azzerking - 30.05.2010, 14:52
Re: HELP.. "Friend" system.. - by iLinx - 30.05.2010, 15:01
Re: HELP.. "Friend" system.. - by azzerking - 30.05.2010, 15:12
Re: HELP.. "Friend" system.. - by Calgon - 30.05.2010, 15:20
Re: HELP.. "Friend" system.. - by Faith - 30.05.2010, 23:04
Re: HELP.. "Friend" system.. - by david_silva_111 - 06.08.2010, 23:20

Forum Jump:


Users browsing this thread: 6 Guest(s)