View file member/people.php

File size: 1.26Kb
<div class="b_head"> People you may know</div><?php
$query=mysql_query("SELECT * FROM b_users ORDER BY RAND() LIMIT 1");
while($info=mysql_fetch_array($query)) { $username=cleanvalues2($info["username"]);
$uid=$info["userID"];
$img=$info["photo"];
$status=$info["status"];
$status=wordwrap($status, 13, "<br/>\n");
if(empty($img))
{ $img="<img src='images/nophoto.png' alt='photo' height='60' width='40'>"; }
else
{ $img="<img src='/avatars/$img' alt='photo' height='60' width='40'>"; }
echo "<div align='left'><a href='../profile.php?uid=$uid'>$img <font color='white'>♦</font> <b>$username</b></a><br><a href='/mail/compose.php?rname=$username'> » Message</a><br/>";
/* Coded By EmirDgreat ==> via Naijakit.com

2go @ kingemir1

*Dont Claim what you are up to, Dis Attachment is Coded by EmirDgreat*
*/
$squery=mysql_fetch_array(mysql_query("SELECT b_users.userID, b_friend.friendID
FROM b_users INNER JOIN b_friend ON b_users.userID=b_friend.friendID
Where b_friend.userID=$uid And b_friend.friendID=$id ORDER BY b_friend.id"));
if(!$squery)
{ echo"<left><a href='/friend.php?action=friend&id=$uid'> » Add As Friend</a></left><br/>"; } else { echo"<left><a href='/friend.php?action=delete&id=$uid'> » Remove Friend</a></left><br>"; }
echo"</div>";
} ?>