📄 friend_list.php
字号:
<?php
include("../functions/is_login.php");
include("../functions/class_mysql.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style></head>
<body>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="392" height="25" bgcolor="#0099CC">好友昵称</td>
<td width="108" height="25" bgcolor="#0099CC">操作</td>
</tr>
<?php
$query=$db->query("SELECT * FROM friend where `f_uname`='NickName';");
$query=$db->fetch_array($query);
$friend_num=explode(",",$query['f_nickname']);
$sum=count($friend_num)-1;
for ($i=0;$i<$sum;$i++)
{
?>
<tr>
<td height="20"><?php echo $friend_num[$i];?></td>
<td height="20"> <a href="../message_put.php?e_username=<?php echo $friend_num[$i];?>">发消息</a> <a href="dele_friend.php?e_username=<?php echo $friend_num[$i];?>">删除好友</a></td>
</tr>
<?php
}
?>
<tr>
<td height="20" colspan="2"><div align="right">
<form id="form1" name="form1" method="post" action="add_friend.php">
<input name="e_name" type="text" size="10" />
<input type="submit" name="Submit" value="添加好友" />
</form>
</div></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -