?? 5.asp
字號:
<html>
<head>
</head>
<body>
<%
Dim cn
set cn=Server.CreateObject("ADODB.Connection")
cn.Open "Driver={SQL server};Server=SUNZY;Database=pubs;UID=sa;PWD="
set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open "select * from asp1",cn
%>
<p align="center">xingzhengjilu id biao</p>
<table>
<tr>
<td width=97>id</td>
<td width=97>password</td>
</tr>
<%
Do While Not rs.Eof
%>
<tr>
<td width=97><%=rs(0)%></td>
<td width=97><%=rs(1)%></td>
</tr>
<%
If Not rs.Eof Then rs.MoveNext
Loop
%>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -