Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 453
0 Users 4 Guests Online

Friends system Add-on

display friends
---

In members.php find:

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


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


Enjoy ;)

Requeted by Armstrong..
new2old
Author:
Views:
2841
Rating:
Posted on Thursday 10th April 2008 at 05:10 PM
Dalez
Dalez
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
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
But, what about the Add Friend bit? where do i put that?
Posted on Monday 24th March 2008 at 12:46 PM
Dalez
Dalez
k thanks xD
Posted on Monday 24th March 2008 at 12:00 PM
ShadowMage
ShadowMage
yep
Posted on Monday 24th March 2008 at 10:14 AM
Dalez
Dalez
So does this just show that users friends in members?
Posted on Saturday 9th February 2008 at 02:17 PM
Liquidsteel
Liquidsteel
Short, Simple, Sweet. And Very Very Easy
Posted on Tuesday 5th February 2008 at 09:50 PM
MrArmstrong
MrArmstrong
Thank you! :)