i want to add an icon to index that detect if u get a new friend request from a female or male if u get from both it just show a image of both how will i be doing this
i really have no idea how to do this
Code:
$mybuds = getnbuds($uid); $onbuds = getonbuds($uid); $reqs = getnreqs($uid); if($reqs>0) { $newbud = ": <a href=\"../friends/index.php?action=reqs&gender=2\"><img src=\"../images/female.png\" hight=\"45\" width=\"45\" alt=\"Request\"/>Female</a>"; }else{ $newbud = ": <a href=\"../friends/index.php?action=reqs&gender=1\"><img src=\"../images/male.png\" hight=\"45\" width=\"45\" alt=\"Request\"/>Male</a>"; } echo "<a href=\"../friends/index.php?action=buds\"><img src=\"../images/friends.png\" hight=\"45\" width=\"45\" alt=\"friends\"/></a>($onbuds|$mybuds) $newbud</small>";
Comment