masterjake
New Member
- Messages
- 73
- Reaction score
- 0
- Points
- 0
Does anyone know how to do a friends system. This is how I was going to setup mine but doing it this way I will need a little help.
When you add a friend it updates a database entry with your friends and adds exactly this "#friend,". I do it this way because some people have spaces in there name but no one has a # in their name as its forbidden in my registration script. Now when the time comes to view there friends I need it to go into that entry, break up all of the friends removing the #'s and ,'s and then add them into an array so I can do sql querys on the array and get the id of each friend so I can put a link to their profiles on the view friends page. Can someone help?
When you add a friend it updates a database entry with your friends and adds exactly this "#friend,". I do it this way because some people have spaces in there name but no one has a # in their name as its forbidden in my registration script. Now when the time comes to view there friends I need it to go into that entry, break up all of the friends removing the #'s and ,'s and then add them into an array so I can do sql querys on the array and get the id of each friend so I can put a link to their profiles on the view friends page. Can someone help?