this is proving tougher than i thought! i have tried allsorts but nothing is working.
this is what i have now:
problem with this is, it echoes 'you are friends' with one of my friends, and the option to add as friend with the rest of my friends. its like the query isnt selecting all from table but query looks ok, here it is:PHP Code:if ($fris['friendname'] != $req_user_info['username']){ //checks if user isnt a friend
echo "<a href=\"friendrequest.php?user=".$req_user_info['username']."\" title=\"Become Friends With ".$req_user_info['username']."\"><img src=\"friends_icon.png\" width=\"25\" height=\"25\" border=\"0\" /></a><br>";
}
else{
echo "[<font color='#666666'>You are friends</font>]";
}
anybody got any ideas?PHP Code:$get = mysql_query( 'SELECT * FROM `friends` WHERE `username` = \''.$username.'\''); //gets friends
$fris = mysql_fetch_array($get);



Reply With Quote

Bookmarks