po中文药房有假吗:这段代码具体是什么意思,谁能帮解释一下

来源:百度文库 编辑:高校问答 时间:2024/04/28 05:41:48
<table width="670" height="25" border="1" cellspacing="0" class="a">
<tr>
<td width="64" height="18">ID</td>
<td width="71"> 用户名</td>
<td width="64">姓名</td>
<td width="80">性别</td>
<td width="74">年龄</td>
<td width="88">会员</td>
<td width="199">操作</td>
</tr>
<%
set rst=server.createobject("adodb.recordset")
sql="select * from user,info where u_id=i_uid"
rst.open sql,conn,1,1
while not rst.eof
%>
<tr>
<td align="center"><%=rst("u_id")%></td>
<td align="center"><%=rst("u_user")%></td>
<td align="center"><%=rst("i_name")%></td>
<td align="center"><%=rst("i_sex")%></td>
<td align="center"><%=rst("i_age")%></td>
<td align="center"><%
if rst("i_vip") then
response.Write("是")
else
response.Write("否")
end if
%></td>
<td align="center"><a href="modify.asp?id=<%=rst("u_id")%>">修改资料
</a>
<a href="admin.asp?act=del&id=<%=rst("u_id")%>">删除会员</a></td></tr>
<%
rst.movenext
wend
rst.close
%>
</table>

打开数据库读取注册资料
以表格形式显示,并提供修改和删除的连接

就是一个表格呀,哈哈~~