看我变成运行的结果:
代码:
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("test.mdb")
sqlstr="select * from cs "
set rs=server.CreateObject("adodb.recordset")
rs.open sqlstr,conn,1,3
%>
<table width="500" border="1">
<% while not rs.eof %>
<tr>
<td> <% response.write rs("kh") %> </td>
<td> <% response.write rs("name") %> </td>
<td> <% response.write rs("yw") %> </td>
<td> <% response.write rs("sx") %> </td>
<td> <% response.write rs("yy") %> </td>
<td> <% response.write rs("wl") %> </td>
<td> <% response.write rs("ls") %> </td>
<td> <% response.write rs("zf") %> </td>
<td> <% response.write rs("mc") %> </td>
<br>
<% rs.movenext %>
</tr>
<% wend
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
[此贴子已经被作者于2005-12-29 18:02:05编辑过]