www.gusucode.com > 仿51.com的php源码 1.1 > User/GetMyFriends.php
<?php header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); ?> <ul> <?php include("../include/dbclass.php"); $db=new DbConn(); include "CheckLogined.php"; $uid=$_COOKIE["uid"]; $sql="select * from myfriend where User_Account='$uid'"; $result=$db->query($sql); while ($row=@mysql_fetch_array($result)) { ?> <li> <img src="images/none.gif" width="14" height="14"> <a href="http://www.wu-liao.com/home.php?user=<?php echo ($row["myfriendname"]);?>" target="_blank" title="<?php echo ($row["myfriendname"]);?>"><span style='text-transform: capitalize'><?php echo ($row["myfriendname"]);?></span></a> <img style="cursor:hand" onclick="javascript:top.showNewMessage('<?php echo ($row["myfriendname"]);?>')" src="images/msg_on.gif" width="14" height="13"> </li> <?php } $db->free_result($result); ?> <font style='color:#aaa;line-height:150%;'><br><?php echo iconv('gbk', 'utf-8',你还没什么好友,你可以到);?><a href='/User/Online.php'><span style='color:#00f;text-decoration:underline;'><?php echo iconv('gbk', 'utf-8',村委会档案);?></span></a><?php echo iconv('gbk', 'utf-8',看看,或试试);?><a href='/RandomUser/RandomUser.php?user=<?php echo $_COOKIE["uid"]; ?>' target=_blank><span style='color:#f00;text-decoration:underline;'><?php echo iconv('gbk', 'utf-8',乱碰运气);?></span></a></font> </ul>