📄 findall.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {font-size: 24px}
-->
</style>
</head>
<body>
<%set con=server.createobject("adodb.connection")
con.connectionstring="dsn=mydsn;uid=sa;pwd="
con.open
set rs=server.createobject("adodb.recordset")
rs.open "select * from books",con,2,2
%>
<table width="752" border="1">
<tr>
<td width="67"><span class="style1">书号</span></td>
<td width="67"><span class="style1">书名</span></td>
<td width="67"><span class="style1">作者</span></td>
<td width="100"><span class="style1">出版社</span></td>
<td width="133"><span class="style1">出版日期</span></td>
<td width="67"><span class="style1">定价</span></td>
<td width="67"><span class="style1">数量</span></td>
<td colspan="2"><span class="style1"></span></td>
</tr>
<% while not rs.eof %>
<tr>
<td><span class="style1"><%=rs("书号")%></span></td>
<td><span class="style1"><%=rs("书名")%></span></td>
<td><span class="style1"><%=rs("作者")%></span></td>
<td><span class="style1"><%=rs("出版社")%></span></td>
<td><span class="style1"><%=rs("出版日期")%></span></td>
<td><span class="style1"><%=rs("定价")%></span></td>
<td><span class="style1"><%=rs("数量")%></span></td>
<td width="67"><span class="style1"><a href="delete.asp?bookid=<%=rs("书号")%>">删除</a></span></td>
<td width="59"><span class="style1"><a href="update.asp?bookid=<%=rs("书号")%>">修改</a></span></td>
</tr>
<% rs.movenext
wend
rs.close
set rs=nothing
con.close
set con=nothing
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -