Welcome Guest, Not a member yet? Register   Sign In
friend system?
#11

[eluser]Phil Sturgeon[/eluser]
Ahh sorry the last example was for is_friend($friendID) checks. I have a slamming hangover and not paying attention!

To list a users friends, you simply do:

Quote:SELECT * FROM Friends WHERE userA = $userID OR userB = $userID


Messages In This Thread
friend system? - by El Forum - 10-18-2007, 10:12 PM
friend system? - by El Forum - 10-18-2007, 11:59 PM
friend system? - by El Forum - 10-19-2007, 12:16 AM
friend system? - by El Forum - 10-19-2007, 12:40 AM
friend system? - by El Forum - 10-19-2007, 12:49 AM
friend system? - by El Forum - 10-19-2007, 12:54 AM
friend system? - by El Forum - 10-19-2007, 01:00 AM
friend system? - by El Forum - 10-19-2007, 03:25 AM
friend system? - by El Forum - 10-19-2007, 04:36 AM
friend system? - by El Forum - 10-19-2007, 05:58 AM
friend system? - by El Forum - 10-19-2007, 06:05 AM
friend system? - by El Forum - 10-19-2007, 06:08 AM
friend system? - by El Forum - 10-19-2007, 06:17 AM
friend system? - by El Forum - 10-19-2007, 10:37 AM
friend system? - by El Forum - 10-19-2007, 12:34 PM
friend system? - by El Forum - 10-19-2007, 12:47 PM
friend system? - by El Forum - 05-13-2010, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB