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]
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 "