Friends system Add-on


display friends
---

In members.php find:

PHP Code
  1. echo "<fieldset style='width: 350'>
  2. <b>$user[username]'s Profile</b><br><br>
  3. Email: $user[email]<br>
  4. Location: $user[location]<br>
  5. Sex: $user[sex]<br>
  6. Age: $user[age]


Add after
PHP Code
  1. ";
  2. $getfriends = mysql_query( "SELECT * FROM `friends` WHERE `username` = '$user[username]'" );
  3. while ($friends = mysql_fetch_array($getfriends))
  4. {
  5. echo "$friends[friendname]";
  6. }
  7. echo "


Enjoy ;)

Requeted by Armstrong..
new2old's Avatar
Author:
Views:
3,893
Rating:
Posted on Thursday 10th April 2008 at 05:10 PM
Dalez
Dalez's Avatar
Yeah could you make a page that just shows your friends? And also a funtion to removed them..

Thanks!
Posted on Thursday 27th March 2008 at 09:17 PM
test
test's Avatar
i think u should do a friends list so users can remove friends
Posted on Monday 24th March 2008 at 12:51 PM
Dalez
Dalez's Avatar
But, what about the Add Friend bit? where do i put that?
Posted on Monday 24th March 2008 at 12:46 PM
Dalez
Dalez's Avatar
k thanks xD
Posted on Monday 24th March 2008 at 12:00 PM
Posted on Monday 24th March 2008 at 10:14 AM
Dalez
Dalez's Avatar
So does this just show that users friends in members?
Posted on Saturday 9th February 2008 at 02:17 PM
Liquidsteel
Liquidsteel's Avatar
Short, Simple, Sweet. And Very Very Easy
Posted on Tuesday 5th February 2008 at 09:50 PM
MrArmstrong
MrArmstrong's Avatar
Thank you! :)